From 3192e69c0cf9db666c83ce65ff4a86dc046e1156 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 19 Feb 2011 13:13:13 -0800 Subject: [PATCH] colorspace: Fix memleak --- gst/colorspace/gstcolorspace.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/colorspace/gstcolorspace.c b/gst/colorspace/gstcolorspace.c index 8a823fa0d9..508fb8a708 100644 --- a/gst/colorspace/gstcolorspace.c +++ b/gst/colorspace/gstcolorspace.c @@ -229,6 +229,10 @@ gst_csp_set_caps (GstBaseTransform * btrans, GstCaps * incaps, space = GST_CSP (btrans); + if (space->convert) { + colorspace_convert_free (space->convert); + } + /* input caps */ ret = gst_video_format_parse_caps (incaps, &in_format, &in_width, &in_height);