mirror of https://github.com/GNOME/gimp.git
libgimpmodule: disconnect from the modules' "modified" signal
when GimpModuleDB is finalized.
This commit is contained in:
parent
7cbb04c0f9
commit
d0608fce22
|
@ -137,6 +137,15 @@ gimp_module_db_finalize (GObject *object)
|
||||||
|
|
||||||
if (db->modules)
|
if (db->modules)
|
||||||
{
|
{
|
||||||
|
GList *list;
|
||||||
|
|
||||||
|
for (list = db->modules; list; list = g_list_next (list))
|
||||||
|
{
|
||||||
|
g_signal_handlers_disconnect_by_func (list->data,
|
||||||
|
gimp_module_db_module_modified,
|
||||||
|
db);
|
||||||
|
}
|
||||||
|
|
||||||
g_list_free (db->modules);
|
g_list_free (db->modules);
|
||||||
db->modules = NULL;
|
db->modules = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue