GNOME Bugzilla – Bug 136259
Reference to deleted object in GtkButton
Last modified: 2011-02-04 16:16:03 UTC
If gtk_button_new_from_stock() is called and subsequently gtk_button_set_label() is called, the widget priv->image is destroyed but priv->image retains its value. See bug #135926 for the effect on gok.
Created attachment 25193 [details] [review] Proposed patch
Wouldn't it be simpler and more in line with what we do elsewhere to insert a priv->image = NULL at a strategic place in construct_child ?
Created attachment 25199 [details] [review] Alternative patch
The alternative patch works for me as well.
That one looks fine; I'll commit it tonight if you don't want to do that yourself.