label: Destroy the popup menu on unmap

This commit is contained in:
Timm Bäder 2016-07-19 14:40:52 +02:00
parent 6107e50c98
commit 41c8446631

View File

@ -4578,7 +4578,15 @@ gtk_label_unmap (GtkWidget *widget)
GtkLabelPrivate *priv = label->priv;
if (priv->select_info)
gdk_window_hide (priv->select_info->window);
{
gdk_window_hide (priv->select_info->window);
if (priv->select_info->popup_menu)
{
gtk_widget_destroy (priv->select_info->popup_menu);
priv->select_info->popup_menu = NULL;
}
}
GTK_WIDGET_CLASS (gtk_label_parent_class)->unmap (widget);
}