GNOME Bugzilla – Bug 611203
Fix problems on destruction
Last modified: 2010-03-02 21:38:18 UTC
StLabel StTooltip: we need to unparent the child, not destroy it since Clutter is buggy when destroying actors not in a ClutterContainer and leaks them. StScrollBar: Be robust against being disposed multiple times, which can happen, and in fact, normally happens when destroying the parent. StScrollView: Implement remove() for the hscroll and vscroll members, and just destroy them in dispose() and let them be removed. unparent the shadows, instead of just unref'ing them directly.
Created attachment 154776 [details] [review] Fix problems on destruction
Review of attachment 154776 [details] [review]: I guess my main question here is how likely is it that a clutter patch for this will land anytime soon? If so it seems cleaner to just depend on that.
FYI, clutter 1.2.0 has been released with that patch.
Committed without the unparent => destroy changes. We'll leak for now and be OK after we switch to clutter-1.2. Attachment 154776 [details] pushed as 6423cbf - Fix problems on destruction