Patch for leak in addressbook-component.c

Kjartan Maraas <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <1155736357.28210.7.camel@rivendell>
Small leak found by valgrind.

Cheers
Kjartan

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
addressbook-component.c-leak.patch (text/x-patch, 691 B)
? 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) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.