[totem-pl-parser] videosite: Fix leak in totem_pl_parser_add_videosite



commit 0e17f4935d06749d089591dc33e0e2c1efb8cec7
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Mon Sep 18 11:12:29 2017 +0200

    videosite: Fix leak in totem_pl_parser_add_videosite
    
    totem_pl_parser_add_hash_table() does not take ownership of the hash
    table we pass it, so totem_pl_parser_add_videosite() needs to drop its
    reference when it no longer needs it.

 plparse/totem-pl-parser-videosite.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plparse/totem-pl-parser-videosite.c b/plparse/totem-pl-parser-videosite.c
index ae50021..456789e 100644
--- a/plparse/totem-pl-parser-videosite.c
+++ b/plparse/totem-pl-parser-videosite.c
@@ -225,6 +225,7 @@ totem_pl_parser_add_videosite (TotemPlParser *parser,
        g_strfreev (lines);
 
        totem_pl_parser_add_hash_table (parser, ht, new_uri, FALSE);
+       g_hash_table_unref (ht);
        g_free (new_uri);
 
        ret = TOTEM_PL_PARSER_RESULT_SUCCESS;


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