[libgdata/libgdata-0-7] core: Fix a memory leak in GDataMediaGroup



commit 5812c5bc12d99dd2c92f8ca839f53c201b43ba16
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Dec 10 12:11:49 2010 +0000

    core: Fix a memory leak in GDataMediaGroup

 gdata/media/gdata-media-group.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdata/media/gdata-media-group.c b/gdata/media/gdata-media-group.c
index 2f3fe33..ba94425 100644
--- a/gdata/media/gdata-media-group.c
+++ b/gdata/media/gdata-media-group.c
@@ -164,6 +164,7 @@ parse_xml (GDataParsable *parsable, xmlDoc *doc, xmlNode *node, gpointer user_da
 			}
 
 			self->priv->keywords = g_strsplit ((gchar*) text, ",", -1);
+			xmlFree (text);
 
 			for (i = 0; self->priv->keywords[i] != NULL; i++) {
 				gchar *comma, *start = self->priv->keywords[i];



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