summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-12-04 02:01:27 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-12-04 02:01:27 +0000
commitfaa29f03edceab1aedfe46d8582f4a72cc9c2675 (patch)
treedb318dbfbe87f4b7d9588b758f1ea78c495857e5 /gmodule
parent133a61d906ad075a23b536dbba50d7a401bd65de (diff)
downloadglib-faa29f03edceab1aedfe46d8582f4a72cc9c2675.tar.gz
Properly refcount the main module if it is already open. (#98648)
Tue Dec 3 20:56:19 2002 Owen Taylor <otaylor@redhat.com> * gmodule.c (g_module_open): Properly refcount the main module if it is already open. (#98648)
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/ChangeLog5
-rw-r--r--gmodule/gmodule.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gmodule/ChangeLog b/gmodule/ChangeLog
index bcc0a7e8f..8f6879bb5 100644
--- a/gmodule/ChangeLog
+++ b/gmodule/ChangeLog
@@ -1,3 +1,8 @@
+Tue Dec 3 20:56:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gmodule.c (g_module_open): Properly refcount the
+ main module if it is already open. (#98648)
+
Sat Mar 2 14:46:17 2002 Owen Taylor <otaylor@redhat.com>
* gmodule-beos.c (_g_module_build_path) * gmodule-dyld.c (_g_module_build_path)
diff --git a/gmodule/gmodule.c b/gmodule/gmodule.c
index 977a61994..25a463e50 100644
--- a/gmodule/gmodule.c
+++ b/gmodule/gmodule.c
@@ -316,6 +316,8 @@ g_module_open (const gchar *file_name,
main_module->next = NULL;
}
}
+ else
+ main_module->ref_count++;
g_static_rec_mutex_unlock (&g_module_global_lock);
return main_module;