summaryrefslogtreecommitdiff
path: root/gst/imagefreeze
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-03-24 09:51:06 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-03-24 09:51:06 +0100
commit02114c1cf0b922abc0f9c9405d16751eec147eb7 (patch)
treea1306db0b0bd7546797294e2b6c73e2f13537fd2 /gst/imagefreeze
parente937d385442d7b9aeb37dcbf4619c8f5ac990342 (diff)
imagefreeze: plug caps leak0.11
Diffstat (limited to 'gst/imagefreeze')
-rw-r--r--gst/imagefreeze/gstimagefreeze.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/imagefreeze/gstimagefreeze.c b/gst/imagefreeze/gstimagefreeze.c
index 16a9b234a..da2872f51 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);