Catalogs memory not freed when exiting
Submitted by Shane Butler
Link to original bug (#154515)
Description
Chas (chastamar@yahoo.com) sent this patch a while ago:
Hi, I've noticed that the widget catalogs are loaded but never deleted (and glade_catalog_delete() is never used). This patch tries to fix this nicely by:
- Making glade_catalog_delete a static function.
- Exporting a new function instead: glade_catalog_delete_all(), which deletes all of the loaded catalogs.
- Saving the catalog list as a local in main() and having glade_init() initialize it.
- Having main() call glade_catalog_delete_all() on exit.
I'm aware that this isn't really an important thing :-) Anyway, I hope this patch is okay.
Cheers, Chas
The patch is on the original email here: http://lists.ximian.com/archives/public/glade-devel/2004-July/000773.html