summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-06-10 03:05:08 +0000
committerChris Toshok <toshok@src.gnome.org>2004-06-10 03:05:08 +0000
commit381e1a76b6826be660d282cfeef2e25e48e5fe9e (patch)
tree444f194a306b31663564df8c0443077131a2bb94
parentc0c2c19cf75ed771fd43e54eac29c347e5963955 (diff)
downloadevolution-data-server-381e1a76b6826be660d282cfeef2e25e48e5fe9e.tar.gz
[ probable fix for #58803 ]
2004-06-09 Chris Toshok <toshok@ximian.com> [ probable fix for #58803 ] * backends/ldap/e-book-backend-ldap.c (ldap_search_handler): remove the ref/unref of the book view here. (e_book_backend_ldap_search): move the dup_ref of the book view here. (ldap_search_dtor): and the release_unref to here.
-rw-r--r--addressbook/ChangeLog10
-rw-r--r--addressbook/backends/ldap/e-book-backend-ldap.c9
2 files changed, 14 insertions, 5 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index fb9bd6a67..044a7d81e 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,15 @@
2004-06-09 Chris Toshok <toshok@ximian.com>
+ [ probable fix for #58803 ]
+
+ * backends/ldap/e-book-backend-ldap.c (ldap_search_handler):
+ remove the ref/unref of the book view here.
+ (e_book_backend_ldap_search): move the dup_ref of the book view
+ here.
+ (ldap_search_dtor): and the release_unref to here.
+
+2004-06-09 Chris Toshok <toshok@ximian.com>
+
* backends/ldap/e-book-backend-ldap.c (ldap_search_dtor): we don't
need to lock/unlock the view's mutex anymore.
diff --git a/addressbook/backends/ldap/e-book-backend-ldap.c b/addressbook/backends/ldap/e-book-backend-ldap.c
index 5829fe663..cfee31d5a 100644
--- a/addressbook/backends/ldap/e-book-backend-ldap.c
+++ b/addressbook/backends/ldap/e-book-backend-ldap.c
@@ -2977,8 +2977,6 @@ ldap_search_handler (LDAPOp *op, LDAPMessage *res)
d(printf ("ldap_search_handler (%p)\n", view));
- bonobo_object_dup_ref(bonobo_object_corba_objref(BONOBO_OBJECT(view)), NULL);
-
if (!search_op->notified_receiving_results) {
search_op->notified_receiving_results = TRUE;
book_view_notify_status (op->view, _("Receiving LDAP search results..."));
@@ -3028,9 +3026,6 @@ ldap_search_handler (LDAPOp *op, LDAPMessage *res)
ldap_op_finished (op);
}
-
-
- bonobo_object_release_unref(bonobo_object_corba_objref(BONOBO_OBJECT(view)), NULL);
}
static void
@@ -3043,6 +3038,8 @@ ldap_search_dtor (LDAPOp *op)
/* unhook us from our EDataBookView */
g_object_set_data (G_OBJECT (search_op->view), "EBookBackendLDAP.BookView::search_op", NULL);
+ bonobo_object_release_unref(bonobo_object_corba_objref(BONOBO_OBJECT(search_op->view)), NULL);
+
g_free (search_op);
}
@@ -3094,6 +3091,8 @@ e_book_backend_ldap_search (EBookBackendLDAP *bl,
op->view = view;
+ bonobo_object_dup_ref(bonobo_object_corba_objref(BONOBO_OBJECT(view)), NULL);
+
ldap_op_add ((LDAPOp*)op, E_BOOK_BACKEND(bl), book, view,
search_msgid,
ldap_search_handler, ldap_search_dtor);