diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c index 8f535129c9..052f1fc464 100644 --- a/libs/gst/base/gstaggregator.c +++ b/libs/gst/base/gstaggregator.c @@ -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; }