[evolution-patches] Addressbook - leak fix



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]