aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index f165217f14..197de831fa 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -352,6 +352,14 @@ control_activate_cb (BonoboControl *control,
static void
addressbook_view_free(AddressbookView *view)
{
+ EBook *book;
+
+ gtk_object_get(GTK_OBJECT(view->view),
+ "book", &book,
+ NULL);
+ if (view->uri)
+ gtk_object_unref (GTK_OBJECT (book));
+
if (view->properties)
bonobo_object_unref(BONOBO_OBJECT(view->properties));
g_free(view->passwd);