diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c index 7bfc8ec110..e0fd91c92e 100644 --- a/gtk/gtkmenubutton.c +++ b/gtk/gtkmenubutton.c @@ -1038,7 +1038,7 @@ gtk_menu_button_dispose (GObject *object) if (priv->popover) { - gtk_widget_destroy (priv->popover); + gtk_popover_set_relative_to (GTK_POPOVER (priv->popover), NULL); priv->popover = NULL; }