aggregator: Don't leak flush-start events

This commit is contained in:
Sebastian Dröge 2014-12-23 11:45:05 +01:00 committed by Tim-Philipp Müller
parent f2814fa5e3
commit 9bac89113e

View file

@ -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);