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.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index dd2fada5ec..2b58d98421 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -781,10 +781,14 @@ impl_dispose (GObject *object)
bonobo_object_unref (BONOBO_OBJECT (esb->ui_component));
esb->ui_component = NULL;
}
- if (esb->entry)
+ if (esb->entry) {
g_object_unref (esb->entry);
- if (esb->suboption)
+ esb->entry = NULL;
+ }
+ if (esb->suboption) {
g_object_unref (esb->suboption);
+ esb->suboption = NULL;
+ }
if (esb->pending_activate) {
g_source_remove (esb->pending_activate);