summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2017-09-18 11:12:29 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2017-09-18 11:13:08 +0200
commit0e17f4935d06749d089591dc33e0e2c1efb8cec7 (patch)
tree8212ae82288690a8d170ac8eb259d4820167d206
parent9d744ac95e113d3b19b7ede813afec60f9d66e1a (diff)
downloadtotem-pl-parser-0e17f4935d06749d089591dc33e0e2c1efb8cec7.tar.gz
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.
-rw-r--r--plparse/totem-pl-parser-videosite.c1
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;