aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/pas
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-03-01 05:51:17 +0800
committerChris Toshok <toshok@src.gnome.org>2002-03-01 05:51:17 +0800
commit8ad83fdce75b7d360d92bbd20175f4279faad19a (patch)
treed2c949c5a5720490878ed718c8d5fe3f4beab9c7 /addressbook/backend/pas
parentb6e3a133f25f2ae19ea914ee32f528d8056380b0 (diff)
downloadgsoc2013-evolution-8ad83fdce75b7d360d92bbd20175f4279faad19a.tar
gsoc2013-evolution-8ad83fdce75b7d360d92bbd20175f4279faad19a.tar.gz
gsoc2013-evolution-8ad83fdce75b7d360d92bbd20175f4279faad19a.tar.bz2
gsoc2013-evolution-8ad83fdce75b7d360d92bbd20175f4279faad19a.tar.lz
gsoc2013-evolution-8ad83fdce75b7d360d92bbd20175f4279faad19a.tar.xz
gsoc2013-evolution-8ad83fdce75b7d360d92bbd20175f4279faad19a.tar.zst
gsoc2013-evolution-8ad83fdce75b7d360d92bbd20175f4279faad19a.zip
don't ref the view here, since it keeps the view alive until the search is
2002-02-28 Chris Toshok <toshok@ximian.com> * backend/pas/pas-backend-ldap.c (pas_backend_ldap_search): don't ref the view here, since it keeps the view alive until the search is over, which we don't want. we want the view's death to cancel the search. This speeds up starting new searches after one is already active (since switching searches actually creates a new book view and destroys the old one.) (ldap_search_dtor): remove the matching unref here. The unref as it was was incorrect anyway, and caused a crash (we needed search_op->view, not op->view.) svn path=/trunk/; revision=15877
Diffstat (limited to 'addressbook/backend/pas')
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index 3128b79104..6a98246257 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -2437,9 +2437,6 @@ ldap_search_dtor (PASBackend *backend, LDAPOp *op)
{
LDAPSearchOp *search_op = (LDAPSearchOp*) op;
- if (op->view)
- bonobo_object_release_unref(bonobo_object_corba_objref(BONOBO_OBJECT(op->view)), NULL);
-
g_free (search_op->ldap_query);
g_free (search_op);
}
@@ -2451,7 +2448,6 @@ pas_backend_ldap_search (PASBackendLDAP *bl,
{
LDAPSearchOp *op = g_new (LDAPSearchOp, 1);
- bonobo_object_dup_ref(bonobo_object_corba_objref(BONOBO_OBJECT(view->book_view)), NULL);
ldap_op_init ((LDAPOp*)op, PAS_BACKEND(bl), book, view->book_view, ldap_search_handler, ldap_search_dtor);
op->ldap_query = NULL;