[gobject-introspection] Don't open shared libraries twice
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Don't open shared libraries twice
- Date: Fri, 14 Aug 2009 01:41:37 +0000 (UTC)
commit 6c33ce32ec1b760ea7ab03e3cd49b80f088c8366
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Aug 13 15:14:49 2009 -0400
Don't open shared libraries twice
If loading a referenced shared library succeeds, don't try loading it again.
http://bugzilla.gnome.org/show_bug.cgi?id=591737
girepository/gtypelib.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/girepository/gtypelib.c b/girepository/gtypelib.c
index 92df539..a801f2b 100644
--- a/girepository/gtypelib.c
+++ b/girepository/gtypelib.c
@@ -1997,8 +1997,10 @@ _g_typelib_init (GTypelib *typelib)
g_string_append (shlib_full, ".la");
module = g_module_open (shlib_full->str, G_MODULE_BIND_LAZY);
if (module == NULL)
- g_string_overwrite (shlib_full, strlen (shlib_full->str)-2, SHLIB_SUFFIX);
- module = g_module_open (shlib_full->str, G_MODULE_BIND_LAZY);
+ {
+ g_string_overwrite (shlib_full, strlen (shlib_full->str)-2, SHLIB_SUFFIX);
+ module = g_module_open (shlib_full->str, G_MODULE_BIND_LAZY);
+ }
g_string_free (shlib_full, TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]