diff options
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-model.c')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-model.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index 9244df8a38..d93c7c0f86 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -119,9 +119,13 @@ addressbook_destroy(GtkObject *object) if (model->writable_status_id) gtk_signal_disconnect(GTK_OBJECT (model->book), model->writable_status_id); - model->writable_status_id = 0; + if (model->backend_died_id) + gtk_signal_disconnect(GTK_OBJECT (model->book), + model->backend_died_id); + model->backend_died_id = 0; + gtk_object_unref(GTK_OBJECT(model->book)); model->book = NULL; } |