diff --git a/gst/imagefreeze/gstimagefreeze.c b/gst/imagefreeze/gstimagefreeze.c index 6eb65c3e71..9b13c14eb7 100644 --- a/gst/imagefreeze/gstimagefreeze.c +++ b/gst/imagefreeze/gstimagefreeze.c @@ -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;