[PATCH] youtube: fix memleak



Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez igalia com>
---
 src/youtube/grl-youtube.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/youtube/grl-youtube.c b/src/youtube/grl-youtube.c
index d701851..50c6836 100644
--- a/src/youtube/grl-youtube.c
+++ b/src/youtube/grl-youtube.c
@@ -664,6 +664,7 @@ build_categories_directory_read_cb (gchar *xmldata, gpointer user_data)
   parse_categories (doc, node, GDATA_SERVICE (user_data));
 
  free_resources:
+  g_free (xmldata);
   xmlFreeDoc (doc);
 }
 
-- 
1.7.1



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