[evolution-patches] Addressbook - leak fix
- From: Sushma Rai <rsushma novell com>
- To: Evolution Patches List <evolution-patches lists ximian com>
- Subject: [evolution-patches] Addressbook - leak fix
- Date: Wed, 10 Aug 2005 11:11:34 +0530
Please review.
Thanks.
Sushma.
Index: addressbook/libedata-book/e-book-backend-cache.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/libedata-book/e-book-backend-cache.c,v
retrieving revision 1.7
diff -u -p -r1.7 e-book-backend-cache.c
--- addressbook/libedata-book/e-book-backend-cache.c 6 Jul 2005 06:47:54 -0000 1.7
+++ addressbook/libedata-book/e-book-backend-cache.c 6 Aug 2005 08:52:29 -0000
@@ -404,8 +404,10 @@ e_book_backend_cache_get_contacts (EBook
}
}
- if (l)
+ if (l) {
+ g_slist_foreach (l, (GFunc)g_object_unref, NULL);
g_slist_free (l);
+ }
if (sexp)
g_object_unref (sexp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]