[libgdata/libgdata-0-7] contacts: Fix a leak in GDataContactsContact



commit 053feac0e5420c870c82e7940a99f5c69f69225c
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Dec 10 11:30:43 2010 +0000

    contacts: Fix a leak in GDataContactsContact

 gdata/services/contacts/gdata-contacts-contact.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdata/services/contacts/gdata-contacts-contact.c b/gdata/services/contacts/gdata-contacts-contact.c
index 654c8d7..4b9f8c4 100644
--- a/gdata/services/contacts/gdata-contacts-contact.c
+++ b/gdata/services/contacts/gdata-contacts-contact.c
@@ -931,6 +931,8 @@ get_group_xml_cb (const gchar *href, gpointer deleted, GString *xml_string)
 		memcpy ((char*) full_pos, "/base/", 6);
 
 	g_string_append_printf (xml_string, "<gContact:groupMembershipInfo href='%s'/>", uri);
+
+	g_free (uri);
 }
 
 static void



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