gtkmenubutton: set menu to NULL in dispose.

Prevent menu to be detached multiple times.
This commit is contained in:
Paolo Borelli 2012-11-04 12:09:23 +01:00
parent 7f870abf17
commit 5830363787

View File

@ -911,6 +911,7 @@ gtk_menu_button_dispose (GObject *object)
menu_deactivate_cb, menu_deactivate_cb,
object); object);
gtk_menu_detach (GTK_MENU (priv->popup)); gtk_menu_detach (GTK_MENU (priv->popup));
priv->popup = NULL;
} }
g_clear_object (&priv->model); g_clear_object (&priv->model);