aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-search-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-search-bar.c')
-rw-r--r--widgets/misc/e-search-bar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 495bc93afb..cadc921593 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -325,6 +325,9 @@ set_dropdown (ESearchBar *esb,
GtkWidget *dropdown;
int i;
+ if (esb->dropdown_menu)
+ gtk_widget_unref (esb->dropdown_menu);
+
menu = esb->dropdown_menu = gtk_menu_new ();
for (i = 0; items[i].id != -1; i++)
add_dropdown (esb, items + i);