videoaggregator: Unref allowed caps after usage
authorSebastian Rasmussen <sebras@hotmail.com>
Sat, 9 Aug 2014 09:17:44 +0000 (11:17 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 11 Aug 2014 06:48:28 +0000 (08:48 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734522

gst-libs/gst/video/gstvideoaggregator.c

index 09dcbb7..02e485c 100644 (file)
@@ -386,6 +386,8 @@ gst_videoaggregator_update_converters (GstVideoAggregator * vagg)
   if (!downstream_caps || gst_caps_is_empty (downstream_caps)) {
     GST_INFO_OBJECT (vagg, "No downstream caps found %"
         GST_PTR_FORMAT, downstream_caps);
+    if (downstream_caps)
+      gst_caps_unref (downstream_caps);
     return FALSE;
   }