From 6146f8e036db5c9e816232dfd31fe064427929c6 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 5 Nov 2002 14:25:25 +0000 Subject: copy a memleak fix from pas-backend-ad. * backend/pas/pas-backend-ldap.c (send_pending_adds): copy a memleak fix from pas-backend-ad. svn path=/trunk/; revision=18552 --- addressbook/ChangeLog | 5 +++++ addressbook/backend/pas/pas-backend-ldap.c | 1 + 2 files changed, 6 insertions(+) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index bcf7eb16f6..330c799207 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2002-11-05 Dan Winship + + * backend/pas/pas-backend-ldap.c (send_pending_adds): copy a + memleak fix from pas-backend-ad. + 2002-11-05 Chris Toshok * backend/ebook/e-card.c: g_date_* => g_date_get_*, fixes diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c index f7442cdf2d..4b180632b4 100644 --- a/addressbook/backend/pas/pas-backend-ldap.c +++ b/addressbook/backend/pas/pas-backend-ldap.c @@ -2833,6 +2833,7 @@ send_pending_adds (LDAPSearchOp *search_op) search_op->num_sent_this_time += search_op->num_pending_adds; pas_book_view_notify_add (search_op->op.view, search_op->pending_adds); g_list_foreach (search_op->pending_adds, (GFunc)g_free, NULL); + g_list_free (search_op->pending_adds); search_op->pending_adds = NULL; search_op->num_pending_adds = 0; } -- cgit v1.2.3