diff options
-rw-r--r-- | widgets/misc/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/misc/e-search-bar.c | 8 |
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); |