aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-12-03 12:55:22 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-12-03 12:55:22 +0800
commitfee69a584f168334948b57e1c8fb79e5acf963c8 (patch)
treef6498f891678e50e88e59762dd567848f1b52d7e /widgets
parent58b68db327f2f02c251ef5b9c41f7623a3bf417f (diff)
downloadgsoc2013-evolution-fee69a584f168334948b57e1c8fb79e5acf963c8.tar.gz
gsoc2013-evolution-fee69a584f168334948b57e1c8fb79e5acf963c8.tar.zst
gsoc2013-evolution-fee69a584f168334948b57e1c8fb79e5acf963c8.zip
dispose can be run multiple times too ... bloody gobject crap.
2002-12-03 Not Zed <NotZed@Ximian.com> * e-search-bar.c (impl_dispose): dispose can be run multiple times too ... bloody gobject crap. svn path=/trunk/; revision=18992
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/ChangeLog5
-rw-r--r--widgets/misc/e-search-bar.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 4f454bac70..ec3aac924c 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,8 @@
+2002-12-03 Not Zed <NotZed@Ximian.com>
+
+ * e-search-bar.c (impl_dispose): dispose can be run multiple times
+ too ... bloody gobject crap.
+
2002-11-27 Not Zed <NotZed@Ximian.com>
* e-charset-picker.c: Add include of gnome-dialog.h
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);