From 16edd7e0998d823adc06d1c1d8aae94dc12727bd Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 15 Oct 2001 19:33:37 +0000 Subject: make sure to unref the book_view here so we don't leak them. 2001-10-15 Chris Toshok * backend/pas/pas-backend-ldap.c (pas_backend_ldap_process_get_book_view): make sure to unref the book_view here so we don't leak them. svn path=/trunk/; revision=13680 --- addressbook/backend/pas/pas-backend-ldap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'addressbook/backend') diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c index 5cc587f8bd..1a3ab7806b 100644 --- a/addressbook/backend/pas/pas-backend-ldap.c +++ b/addressbook/backend/pas/pas-backend-ldap.c @@ -611,7 +611,7 @@ free_mods (GPtrArray *mods) g_free (mod); } - g_ptr_array_free (mods, TRUE /* XXX ? */); + g_ptr_array_free (mods, TRUE); } static GPtrArray* @@ -2154,7 +2154,10 @@ pas_backend_ldap_process_get_book_view (PASBackend *backend, g_free (req->search); CORBA_exception_init(&ev); + + bonobo_object_unref (BONOBO_OBJECT (book_view)); bonobo_object_release_unref(req->listener, &ev); + if (ev._major != CORBA_NO_EXCEPTION) { g_warning("pas_backend_file_process_get_book_view: Exception reffing " "corba book.\n"); -- cgit v1.2.3