[MOVED FROM BAD 57/68] colorspace: Fix memleak
authorDavid Schleef <ds@schleef.org>
Sat, 19 Feb 2011 21:13:13 +0000 (13:13 -0800)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 15 Jun 2011 14:12:56 +0000 (16:12 +0200)
gst/colorspace/gstcolorspace.c

index 8a823fa..508fb8a 100644 (file)
@@ -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);