diff options
Diffstat (limited to 'calendar/gui/popup-menu.c')
-rw-r--r-- | calendar/gui/popup-menu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/popup-menu.c b/calendar/gui/popup-menu.c index 3686183146..3b976a9033 100644 --- a/calendar/gui/popup-menu.c +++ b/calendar/gui/popup-menu.c @@ -17,7 +17,10 @@ popup_menu (struct menu_item *items, int nitems, GdkEventButton *event) GtkWidget *item; int i; - menu = gtk_menu_new (); /* FIXME: this baby is never freed */ + menu = gtk_menu_new (); + + /* Make sure the menu is destroyed when it disappears. */ + e_auto_kill_popup_menu_on_hide (menu); for (i = 0; i < nitems; i++) { if (items[i].text) { |