summaryrefslogtreecommitdiff
path: root/src/video_out/yuv2rgb.h
diff options
context:
space:
mode:
authorEwald Snel <esnel@users.sourceforge.net>2003-02-02 11:21:34 +0000
committerEwald Snel <esnel@users.sourceforge.net>2003-02-02 11:21:34 +0000
commit0d351ab03f9b0f753a7e7c9878963a366663f129 (patch)
treed8485fc70fcceec4969f6960e4adf336ce4a433b /src/video_out/yuv2rgb.h
parentf55fcb8d696747a15da6640398877ae046a4d013 (diff)
downloadxine-lib-0d351ab03f9b0f753a7e7c9878963a366663f129.tar.gz
xine-lib-0d351ab03f9b0f753a7e7c9878963a366663f129.tar.bz2
Fix memory leak in XShm driver
CVS patchset: 4085 CVS date: 2003/02/02 11:21:34
Diffstat (limited to 'src/video_out/yuv2rgb.h')
-rw-r--r--src/video_out/yuv2rgb.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/video_out/yuv2rgb.h b/src/video_out/yuv2rgb.h
index b27c45bdc..36ea94229 100644
--- a/src/video_out/yuv2rgb.h
+++ b/src/video_out/yuv2rgb.h
@@ -57,6 +57,11 @@ struct yuv2rgb_s {
int (*next_slice) (yuv2rgb_t *this, uint8_t **dest);
/*
+ * free resources
+ */
+ void (*dispose) (yuv2rgb_t *this);
+
+ /*
* this is the function to call for the yuv2rgb and scaling process
*/
yuv2rgb_fun_t yuv2rgb_fun;
@@ -118,7 +123,12 @@ struct yuv2rgb_factory_s {
* get gamma value
*/
int (*get_gamma) (yuv2rgb_factory_t *this);
-
+
+ /*
+ * free resources
+ */
+ void (*dispose) (yuv2rgb_factory_t *this);
+
/* private data */
int mode;
@@ -130,6 +140,7 @@ struct yuv2rgb_factory_s {
uint32_t matrix_coefficients;
+ void *table_base;
void *table_rV[256];
void *table_gU[256];
int table_gV[256];