[evolution-patches] Patch for leak in addressbook-component.c



Small leak found by valgrind.

Cheers
Kjartan

? addressbook.error
Index: gui/component/addressbook-component.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-component.c,v
retrieving revision 1.146
diff -u -p -r1.146 addressbook-component.c
--- gui/component/addressbook-component.c	23 Feb 2006 04:52:22 -0000	1.146
+++ gui/component/addressbook-component.c	16 Aug 2006 13:51:29 -0000
@@ -306,6 +306,7 @@ impl_requestCreateItem (PortableServer_S
 	g_object_unref (gconf_client);
 	if (!e_book_get_addressbooks (&source_list, NULL)) {
 		g_warning ("Could not get addressbook source list from GConf!");
+		g_free (uid);
 		return;
 	}
 	if (uid) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]