rmdemux: fix tag memory leak
authorVineeth T M <vineeth.tm@samsung.com>
Thu, 16 Jul 2015 00:49:17 +0000 (09:49 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 16 Jul 2015 07:59:20 +0000 (08:59 +0100)
tags is not being freed after being merged to the
pending_tags.

https://bugzilla.gnome.org/show_bug.cgi?id=752404

gst/realmedia/rmdemux.c

index d5d3ac1..27b7100 100644 (file)
@@ -1926,6 +1926,7 @@ gst_rmdemux_parse_cont (GstRMDemux * rmdemux, const guint8 * data, int length)
 
   rmdemux->pending_tags =
       gst_tag_list_merge (rmdemux->pending_tags, tags, GST_TAG_MERGE_APPEND);
+  gst_tag_list_unref (tags);
 }
 
 static void