Properly refcount the main module if it is already open. (#98648)
authorOwen Taylor <otaylor@redhat.com>
Wed, 4 Dec 2002 02:01:27 +0000 (02:01 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 4 Dec 2002 02:01:27 +0000 (02:01 +0000)
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)

gmodule/ChangeLog
gmodule/gmodule.c

index bcc0a7e..8f6879b 100644 (file)
@@ -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) 
index 977a619..25a463e 100644 (file)
@@ -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;