aggregator: Unref the taglist in GstAggregator::stop()
authorSebastian Dröge <sebastian@centricular.com>
Mon, 6 Oct 2014 07:11:23 +0000 (10:11 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:25 +0000 (15:10 +0000)
libs/gst/base/gstaggregator.c

index 8f53512..052f1fc 100644 (file)
@@ -728,6 +728,10 @@ _stop (GstAggregator * agg)
   gst_aggregator_iterate_sinkpads (agg,
       (GstAggregatorPadForeachFunc) _flush_pad, NULL);
 
+  if (agg->priv->tags)
+    gst_tag_list_unref (agg->priv->tags);
+  agg->priv->tags = NULL;
+
   return TRUE;
 }