mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-02 09:01:13 +00:00
libgimpconfig: fix leak.
As far as I understand, the created types are never "unregistered" and will live in the process until it ends. It cannot even have a custom class_finalize() (looking at g_type_register_static()'s code, a CRITICAL is emitted if you try to provide a class_finalize() implementation). So let's just free the allocated pspecs at the end of class_init() instead.
This commit is contained in:
parent
d7fadf9fe6
commit
2f952932f3
1 changed files with 2 additions and 0 deletions
|
@ -174,6 +174,8 @@ gimp_config_class_init (GObjectClass *klass,
|
|||
g_type_name (G_TYPE_FROM_INSTANCE (pspec)), pspec->name, type_name);
|
||||
}
|
||||
}
|
||||
|
||||
g_free (pspecs);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue