From 02114c1cf0b922abc0f9c9405d16751eec147eb7 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Sat, 24 Mar 2012 09:51:06 +0100 Subject: [PATCH] imagefreeze: plug caps leak --- gst/imagefreeze/gstimagefreeze.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/imagefreeze/gstimagefreeze.c b/gst/imagefreeze/gstimagefreeze.c index 16a9b23..da2872f 100644 --- a/gst/imagefreeze/gstimagefreeze.c +++ b/gst/imagefreeze/gstimagefreeze.c @@ -293,6 +293,8 @@ gst_image_freeze_sink_getcaps (GstImageFreeze * self, GstCaps * filter) ret = gst_caps_copy (templ); } gst_caps_unref (templ); + if (filter) + gst_caps_unref (filter); ret = gst_caps_make_writable (ret); gst_image_freeze_remove_fps (self, ret); -- 2.7.4