aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2000-04-13 15:24:32 +0800
committerChris Toshok <toshok@src.gnome.org>2000-04-13 15:24:32 +0800
commitbb53ed6a7c9315f74330cb473636fb8a751695c0 (patch)
treeb7a0f2d873bf6d9ee8c362dd6baa1866dc0d01d1
parent03de91fc551154b1db685c19faa4c051278d17e1 (diff)
downloadgsoc2013-evolution-bb53ed6a7c9315f74330cb473636fb8a751695c0.tar.gz
gsoc2013-evolution-bb53ed6a7c9315f74330cb473636fb8a751695c0.tar.zst
gsoc2013-evolution-bb53ed6a7c9315f74330cb473636fb8a751695c0.zip
make sure to g_source_remove the idle id.
* addressbook/backend/pas/pas-backend-ldap.c (view_destroy): make sure to g_source_remove the idle id. svn path=/trunk/; revision=2415
-rw-r--r--ChangeLog1
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2d2de2df2f..cafa80338c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
function that polls ldap for more search responses.
(pas_backend_ldap_search): use the async search interface and
register an idle call to poll for the responses.
+ (view_destroy): make sure to g_source_remove the idle id.
2000-04-12 Chris Toshok <toshok@helixcode.com>
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index db0f7b5124..3f36f6f3a5 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -108,6 +108,8 @@ view_destroy(GtkObject *object, gpointer data)
if (view->book_view == PAS_BOOK_VIEW(object)) {
g_free (view->search);
g_free (view);
+ if (view->search_idle != 0)
+ g_source_remove(view->search_idle);
bl->priv->book_views = g_list_remove_link(bl->priv->book_views, list);
g_list_free_1(list);
break;