mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Revert "gio/module: fix leak when there is no cache"
This reverts commit ad0fd6c5d9
.
The type system actually keeps a weak reference on the module/plugin.
g_type_module_unuse() documentation is explicit "Once a #GTypeModule is
initialized, it must exist forever."
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
eef6ea9b3b
commit
3967d1da56
@ -581,9 +581,11 @@ g_io_modules_scan_all_in_directory_with_scope (const char *dirname,
|
||||
if (g_type_module_use (G_TYPE_MODULE (module)))
|
||||
g_type_module_unuse (G_TYPE_MODULE (module)); /* Unload */
|
||||
else
|
||||
{
|
||||
g_printerr ("Failed to load module: %s\n", path);
|
||||
g_object_unref (module);
|
||||
}
|
||||
}
|
||||
|
||||
g_free (path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user