GNOME Bugzilla – Bug 154515
Catalogs memory not freed when exiting
Last modified: 2018-03-26 14:58:45 UTC
Chas (firstname.lastname@example.org) sent this patch a while ago:
> I've noticed that the widget catalogs are loaded but
> never deleted (and glade_catalog_delete() is never
> This patch tries to fix this nicely by:
> 1) Making glade_catalog_delete a static function.
> 2) Exporting a new function instead:
> glade_catalog_delete_all(), which deletes all of the
> loaded catalogs.
> 3) Saving the catalog list as a local in main() and
> having glade_init() initialize it.
> 4) Having main() call glade_catalog_delete_all() on
> I'm aware that this isn't really an important thing
> :-) Anyway, I hope this patch is okay.
The patch is on the original email here:
Unfortunately, this patch has bit-rotted a lot since 2004, so we can't hope to apply it. However the bug that this patch address is still a problem (should free all memory before exiting as it helps with valgrind profiles). I am going to leave this bug open and rename it to something more appropriate.
I have partially fixed this bug. Still have to unref the widget adaptors though.
-- GitLab Migration Automatic Message --
This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/2.