After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 154018 - A Glib::RefPtr bound to a slot stays around forever
A Glib::RefPtr bound to a slot stays around forever
Status: RESOLVED FIXED
Product: libsigc++
Classification: Bindings
Component: general
2.0
Other Linux
: Urgent critical
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2004-09-28 23:59 UTC by Philip Langdale
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case showing object is never deleted. (794 bytes, text/plain)
2004-09-28 23:59 UTC, Philip Langdale
Details

Description Philip Langdale 2004-09-28 23:59:08 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.
Comment 1 Philip Langdale 2004-09-28 23:59:55 UTC
Created attachment 32048 [details]
Test case showing object is never deleted.
Comment 2 Philip Langdale 2004-10-04 20:48:20 UTC
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.