Commit 9d0e323f authored by Sébastien Wilmet's avatar Sébastien Wilmet

ViewFrame: do not leak the popup menu

parent 623f9546
......@@ -910,6 +910,11 @@ search_entry_icon_release (GtkEntry *entry,
setup_popup_menu (frame, menu);
add_popup_menu_items (frame, menu);
g_signal_connect (menu,
"selection-done",
G_CALLBACK (gtk_widget_destroy),
NULL);
gtk_menu_popup (GTK_MENU (menu),
NULL, NULL,
gedit_utils_menu_position_under_widget, entry,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment