diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c index 7fbe821bc0..47f60de1d0 100644 --- a/libs/gst/base/gstaggregator.c +++ b/libs/gst/base/gstaggregator.c @@ -734,6 +734,8 @@ _flush_start (GstAggregator * self, GstAggregatorPad * aggpad, GstEvent * event) GST_PAD_STREAM_LOCK (self->srcpad); GST_LOG_OBJECT (self, "GOT STREAM_LOCK"); event = NULL; + } else { + gst_event_unref (event); } } else { gst_event_unref (event);