aggregator: Don't leak flush-start events
authorSebastian Dröge <sebastian@centricular.com>
Tue, 23 Dec 2014 10:45:05 +0000 (11:45 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
libs/gst/base/gstaggregator.c

index 7fbe821..47f60de 100644 (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);