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/ChangeLog | 11 +++++++++++ addressbook/backend/pas/pas-backend-ldap.c | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 815284871e..9dfd5c6717 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,14 @@ +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. + +2001-10-12 Chris Toshok + + * gui/component/addressbook-factory.c (main): call + e_passwords_init and e_passwords_shutdown. + 2001-10-15 Christopher James Lahey * backend/ebook/e-card.c (addPropValueQP, addPropValueSets, 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