diff options
author | Owen Taylor <otaylor@src.gnome.org> | 2008-11-11 00:48:17 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2008-11-11 00:48:17 +0000 |
commit | 259eaeb7de6ef454f3f79e68278018ed0787dd68 (patch) | |
tree | 7636068e205c231e0c89a527d3dfb067d57b156b /girepository/girmodule.c | |
parent | 1764f6bcf2be6b45b0726694d86c501ce60d1b4e (diff) | |
download | gobject-introspection-259eaeb7de6ef454f3f79e68278018ed0787dd68.tar.gz |
Bug 560250 - Fully parse included modules
For some things, like computing structure offsets to put into the typelib
we need more than just the aliases from included modules. Do a completel
parse of included modules and store in module->included_modules.
Also add g_ir_find_node() to find node information from within the
active set of modules and their includes.
svn path=/trunk/; revision=874
Diffstat (limited to 'girepository/girmodule.c')
-rw-r--r-- | girepository/girmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/girepository/girmodule.c b/girepository/girmodule.c index d7ca37bf..91cc02d8 100644 --- a/girepository/girmodule.c +++ b/girepository/girmodule.c @@ -62,6 +62,10 @@ g_ir_module_free (GIrModule *module) g_list_free (module->entries); /* Don't free dependencies, we inherit that from the parser */ + /* FIXME: we leak the included modules themelves; they may be shared + * between multiple modules, so we would need refcounting */ + g_list_free (module->include_modules); + g_free (module); } |