GNOME Bugzilla – Bug 64096
int glib_debug_shutdown (void)
Last modified: 2012-08-26 14:55:01 UTC
It would be wonderful to have a method such as this, that would replace the 'atexit' object debugging approach there currently - but, better than this return the status, ie. whether things leaked or not - so that other projects' regression tests can automaticaly fail if a leak has occured. Oh - and it'd be great if it didn't warn when no objects are leaked ...
http://mail.gnome.org/archives/gtk-devel-list/2001-November/msg00541.html
*** Bug 76769 has been marked as a duplicate of this bug. ***
Bug 76769 has slightly more extensive commentary in it.
*** Bug 120258 has been marked as a duplicate of this bug. ***
*** Bug 127098 has been marked as a duplicate of this bug. ***
*** Bug 140548 has been marked as a duplicate of this bug. ***
*** Bug 305037 has been marked as a duplicate of this bug. ***
Can we use appropriate attributes? void __attribute__((constructor)) init(void) {} void __attribute__((destructor)) finish(void) {} (possibly wrapped in #ifdef GNUC)
lots more discussion has happened in a newer bug *** This bug has been marked as a duplicate of bug 627423 ***