aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component/addressbook.c')
-rw-r--r--addressbook/gui/component/addressbook.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index 13f936188e..825288fa49 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -574,13 +574,16 @@ set_prop (BonoboPropertyBag *bag,
static void
teardown_minicard_view (AddressbookView *view)
{
+ if (view->view) {
+ gtk_object_destroy(GTK_OBJECT(view->view));
+ view->view = NULL;
+ }
if (view->minicard_vbox) {
gtk_widget_destroy(view->minicard_vbox);
view->minicard_vbox = NULL;
}
view->canvas = NULL;
- view->view = NULL;
}
static void