[totem-pl-parser] Fix memleak in _add_itms



commit 00f365d4d6f6e153a4fb2068659f8047e6ebab85
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Apr 29 01:10:33 2009 +0100

    Fix memleak in _add_itms
    
    2009-04-29  Bastien Nocera  <hadess hadess net>
    
    	* plparse/totem-pl-parser-podcast.c (totem_pl_parser_add_itms):
    	Fix memleak in _add_itms
---
 ChangeLog                         |    5 +++++
 plparse/totem-pl-parser-podcast.c |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 42f458f..62e548d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-04-29  Bastien Nocera  <hadess hadess net>
 
+	* plparse/totem-pl-parser-podcast.c (totem_pl_parser_add_itms):
+	Fix memleak in _add_itms
+
+2009-04-29  Bastien Nocera  <hadess hadess net>
+
 	* plparse/totem-pl-parser-podcast.c (decompress_gzip):
 	Fix parsing of
 	http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=271121520
diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c
index 5f87953..893ca8e 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -759,8 +759,10 @@ totem_pl_parser_add_itms (TotemPlParser *parser,
 
 	/* And look in the file for the feedURL */
 	feed_uri = totem_pl_parser_get_feed_uri (uncompressed, strlen (uncompressed) + 1);
-	if (feed_uri == NULL)
+	if (feed_uri == NULL) {
+		g_free (uncompressed);
 		return TOTEM_PL_PARSER_RESULT_ERROR;
+	}
 
 	ret = totem_pl_parser_add_rss (parser, feed_uri, NULL, NULL);
 	g_object_unref (feed_uri);



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