[totem-pl-parser] podcast: Fix memory leak when parsing ITMS links



commit a6a79ec9e4d6170abf55b40324670431e109b1e6
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Sep 20 13:18:26 2016 +0200

    podcast: Fix memory leak when parsing ITMS links

 plparse/totem-pl-parser-podcast.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c
index 0e6820b..263dccd 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -687,9 +687,11 @@ totem_pl_parser_add_itms (TotemPlParser *parser,
        g_free (contents);
        if (feed_url == NULL) {
                DEBUG(json_file, g_print ("Failed to parse JSON file at '%s'\n", uri));
+               g_object_unref (json_file);
                return TOTEM_PL_PARSER_RESULT_ERROR;
        }
 
+       g_object_unref (json_file);
        feed_file = g_file_new_for_uri (feed_url);
        g_free (feed_url);
 


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