GNOME Bugzilla – Bug 154018
A Glib::RefPtr bound to a slot stays around forever
Last modified: 2004-12-22 21:47:04 UTC
See the attached testcase for an example. I bind a Glib::RefPtr to a slot and note that the object the RefPtr points to is never deleted even though the slot and all other references have gone out of scope. memprof doesn't report this as a leak, which I don't understand, as I see no way to get to the RefPtr or object.
Created attachment 32048 [details] Test case showing object is never deleted.
The fix for bug 152323 seems to have fixed this. We don't see this as a leak because the ref holder is the object that's leaked.