From b4d28290943826462216623b6f7aa01d8ee975a5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 19 Feb 2006 11:57:58 +0000 Subject: gst/flx/: Set MALLOCDATA for the temp buffers so we don't leak. Original commit message from CVS: * gst/flx/flx_color.h: * gst/flx/flx_fmt.h: * gst/flx/gstflxdec.c: (gst_flxdec_init), (gst_flxdec_src_query_handler), (flx_decode_color), (gst_flxdec_chain): * gst/flx/gstflxdec.h: Set MALLOCDATA for the temp buffers so we don't leak. Some debug cleanups. Consume all data in the adapter before leaving the chain function. Fixes #330678. --- gst/flx/flx_color.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gst/flx/flx_color.h') diff --git a/gst/flx/flx_color.h b/gst/flx/flx_color.h index 673505b4..80378e1d 100644 --- a/gst/flx/flx_color.h +++ b/gst/flx/flx_color.h @@ -17,8 +17,13 @@ * Boston, MA 02111-1307, USA. */ +#ifndef __FLX_COLOR_H__ +#define __FLX_COLOR_H__ + #include +G_BEGIN_DECLS + typedef enum { FLX_COLORSPACE_RGB8, FLX_COLORSPACE_RGB32, @@ -42,3 +47,6 @@ void flx_set_palette_vector(FlxColorSpaceConverter *flxpal, guint start, guint n void flx_set_color(FlxColorSpaceConverter *flxpal, guint colr, guint red, guint green, guint blue, gint scale); +G_END_DECLS + +#endif /* __FLX_COLOR_H__ */ -- cgit