[libgdata] contacts: Fix a leak in GDataContactsContact



commit e1d394cde3a24b466b3c8d1bb5839b2766eeb0e0
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 a87a403..4cc5ec9 100644
--- a/gdata/services/contacts/gdata-contacts-contact.c
+++ b/gdata/services/contacts/gdata-contacts-contact.c
@@ -934,6 +934,8 @@ get_group_xml_cb (const gchar *href, gpointer deleted, GString *xml_string)
 		memcpy ((char*) full_pos, "/base/", 6);
 
 	gdata_parser_string_append_escaped (xml_string, "<gContact:groupMembershipInfo href='", uri, "'/>");
+
+	g_free (uri);
 }
 
 static void



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