GNOME Bugzilla – Bug 76769
way to free all memory at exit
Last modified: 2011-02-18 16:13:45 UTC
--enable-gc-friendly (or some other flag) should cause glib to really free everything allocated by (say) glist.c on exit. While exit(2) is a very good garbage collector, it does not help in the quest to find out who leaks what.
Freeing all memory at exit has nothing to do with being "GC friendly" .. "GC friendly" means that we don't keep live pointers around to dead objects. A way to free all memory at exit has been requested by various people, but since it is a complete pain to implement (you have to basically have some sort of: register_cache_freome sort of: and then use it all over the place) we have no immediate plans of implementing anything in this area. See threads starting from: http://mail.gnome.org/archives/gtk-devel-list/2001-November/msg00279.html http://mail.gnome.org/archives/gtk-devel-list/2001-November/msg00333.html In particular, http://mail.gnome.org/archives/gtk-devel-list/2001-November/msg00541.html Has some comments about the dangers to code quality of doing this in a not well structured fashion.
*** This bug has been marked as a duplicate of 64096 ***