summaryrefslogtreecommitdiff
path: root/girepository/girepository.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-08-18 10:23:09 -0400
committerColin Walters <walters@verbum.org>2009-08-19 11:05:08 -0400
commit6d510b8db845f0c368dddf9b8d15aaac71a8a676 (patch)
tree5b95024424d3be7bb470897fb09fe6dbd131df92 /girepository/girepository.c
parentefa7266bcf78478ce62e8dd778a4f0417bfd4d15 (diff)
downloadgobject-introspection-6d510b8db845f0c368dddf9b8d15aaac71a8a676.tar.gz
[typelib] Clean up dlopen handling
It's was busted that g_typelib_new_* does the dlopen() since that caused g-ir-compiler to load the modules even though it wasn't going to do anything with them. Instead, change things so that g_module_symbol does the dlopen on-demand. Remove the extra dlopen(NULL) inside girepository.c, we had another already in gtypelib.c. Thanks to Owen Taylor for suggesting this approach.
Diffstat (limited to 'girepository/girepository.c')
-rw-r--r--girepository/girepository.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 3e0d08d8..e6818298 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -363,9 +363,6 @@ register_internal (GIRepository *repository,
g_hash_table_insert (repository->priv->typelibs, key, (void *)typelib);
}
- if (typelib->modules == NULL)
- typelib->modules = g_list_append(typelib->modules, g_module_open (NULL, 0));
-
return namespace;
}