diff options
author | Paolo Borelli <pborelli@gnome.org> | 2012-11-04 12:09:23 +0100 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2012-11-04 17:12:14 +0100 |
commit | 583036378706ab03822f30ce311c41293d482d6c (patch) | |
tree | 3780a37f9ebbbfe5d8f6a44641633a1a4ee66d88 /gtk/gtkmenubutton.c | |
parent | 7f870abf176bb20ee86ef4489430504ae8fb1402 (diff) | |
download | gtk+-583036378706ab03822f30ce311c41293d482d6c.tar.gz |
gtkmenubutton: set menu to NULL in dispose.
Prevent menu to be detached multiple times.
Diffstat (limited to 'gtk/gtkmenubutton.c')
-rw-r--r-- | gtk/gtkmenubutton.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c index 09ec60d339..5416d3761a 100644 --- a/gtk/gtkmenubutton.c +++ b/gtk/gtkmenubutton.c @@ -911,6 +911,7 @@ gtk_menu_button_dispose (GObject *object) menu_deactivate_cb, object); gtk_menu_detach (GTK_MENU (priv->popup)); + priv->popup = NULL; } g_clear_object (&priv->model); |