diff options
author | David Schleef <ds@schleef.org> | 2011-02-15 18:12:02 -0800 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2011-02-17 12:45:17 -0800 |
commit | df1a470d5d25a3517e401fafcab9b06a5abe2792 (patch) | |
tree | c755a7344884af951a2ce8fe8cf84b7f7df8e987 /gst/colorspace/gstcolorspace.c | |
parent | 535bf57d1f76fc1c73cde5af636a78b78b950733 (diff) |
colorspace: Fix memory leak
Diffstat (limited to 'gst/colorspace/gstcolorspace.c')
-rw-r--r-- | gst/colorspace/gstcolorspace.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/colorspace/gstcolorspace.c b/gst/colorspace/gstcolorspace.c index 2de57732d..8a823fa0d 100644 --- a/gst/colorspace/gstcolorspace.c +++ b/gst/colorspace/gstcolorspace.c @@ -407,7 +407,14 @@ gst_csp_base_init (gpointer klass) static void gst_csp_finalize (GObject * obj) { + GstCsp *space = GST_CSP (obj); + + if (space->convert) { + colorspace_convert_free (space->convert); + } + G_OBJECT_CLASS (parent_class)->finalize (obj); + } static void |