mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-23 12:44:54 +02:00
If loading the module fails, don't increment the use count.
Wed Nov 15 20:58:05 2000 Owen Taylor <otaylor@redhat.com> * gtypemodule.c (g_type_module_use): If loading the module fails, don't increment the use count.
This commit is contained in:
parent
b9731eb861
commit
bf25038c09
@ -1,3 +1,8 @@
|
|||||||
|
Wed Nov 15 20:58:05 2000 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtypemodule.c (g_type_module_use): If loading the
|
||||||
|
module fails, don't increment the use count.
|
||||||
|
|
||||||
Thu Nov 9 01:49:43 2000 Tim Janik <timj@gtk.org>
|
Thu Nov 9 01:49:43 2000 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gobject.h (G_WARN_INVALID_PARAM_ID): doh,
|
* gobject.h (G_WARN_INVALID_PARAM_ID): doh,
|
||||||
|
@ -204,7 +204,10 @@ g_type_module_use (GTypeModule *module)
|
|||||||
GSList *tmp_list;
|
GSList *tmp_list;
|
||||||
|
|
||||||
if (!G_TYPE_MODULE_GET_CLASS (module)->load (module))
|
if (!G_TYPE_MODULE_GET_CLASS (module)->load (module))
|
||||||
return FALSE;
|
{
|
||||||
|
module->use_count--;
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
tmp_list = module->type_infos;
|
tmp_list = module->type_infos;
|
||||||
while (tmp_list)
|
while (tmp_list)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user