imagefreeze: Unref pad template caps after usage
authorSebastian Rasmussen <sebras@hotmail.com>
Fri, 8 Aug 2014 10:40:49 +0000 (12:40 +0200)
committerThiago Santos <thiagoss@osg.samsung.com>
Fri, 8 Aug 2014 19:06:11 +0000 (16:06 -0300)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734475

gst/imagefreeze/gstimagefreeze.c

index 6eb65c3..9b13c14 100644 (file)
@@ -192,6 +192,7 @@ gst_image_freeze_sink_setcaps (GstImageFreeze * self, GstCaps * caps)
   GST_DEBUG_OBJECT (pad, "with: %" GST_PTR_FORMAT, othercaps);
   GST_DEBUG_OBJECT (pad, "gave: %" GST_PTR_FORMAT, intersection);
   gst_caps_unref (caps);
+  gst_caps_unref (othercaps);
   caps = intersection;
   intersection = othercaps = NULL;