aggregator: plug a memory leak of the srccaps

This commit is contained in:
Matthew Waters 2014-06-26 10:53:16 +10:00 committed by Tim-Philipp Müller
parent eace37b743
commit 19c8fcfa28

View file

@ -321,6 +321,7 @@ _push_mandatory_events (GstAggregator * self)
gst_event_new_caps (self->priv->srccaps))) {
GST_WARNING_OBJECT (self->srcpad, "Sending caps event failed");
}
gst_caps_unref (self->priv->srccaps);
self->priv->srccaps = NULL;
}