GNOME Bugzilla – Bug 761925
Add a destructor to unref singleton
Last modified: 2016-02-28 13:17:47 UTC
It would be nice to have a destructor to unref the GspellBufferNotifier singleton, to have less garbage in the output of memory-debugging tools. For example when using gobject-list: https://blogs.gnome.org/danni/2011/02/17/ld_preload-gobject-lifetime-debugging-tool/ https://git.collabora.com/cgit/user/danni/gobject-list.git/
Done. But unfortunately, the output of gobject-list is: > Still Alive: > - 0x2642ca0, GspellBufferNotifier: 1 refs > 1 objects > -- Finalized object 0x2642ca0, GspellBufferNotifier The singleton is finalized after the gobject-list listing. But I'm sure that destroying the singleton will simplify the output of other memory debugging tools. And gobject-list can maybe be fixed.