aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/e-addressbook-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component/e-addressbook-model.c')
-rw-r--r--addressbook/gui/component/e-addressbook-model.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/addressbook/gui/component/e-addressbook-model.c b/addressbook/gui/component/e-addressbook-model.c
index 367e067687..b2f7332c52 100644
--- a/addressbook/gui/component/e-addressbook-model.c
+++ b/addressbook/gui/component/e-addressbook-model.c
@@ -37,8 +37,6 @@ addressbook_destroy(GtkObject *object)
if (model->get_view_idle)
g_source_remove(model->get_view_idle);
- if (model->book)
- gtk_object_unref(GTK_OBJECT(model->book));
if (model->book_view && model->create_card_id)
gtk_signal_disconnect(GTK_OBJECT (model->book_view),
model->create_card_id);
@@ -48,6 +46,8 @@ addressbook_destroy(GtkObject *object)
if (model->book_view && model->modify_card_id)
gtk_signal_disconnect(GTK_OBJECT (model->book_view),
model->modify_card_id);
+ if (model->book)
+ gtk_object_unref(GTK_OBJECT(model->book));
if (model->book_view)
gtk_object_unref(GTK_OBJECT(model->book_view));