diff options
author | Stefan Kemper <stefan.kemper@artifex.com> | 2003-11-19 22:29:19 +0000 |
---|---|---|
committer | Stefan Kemper <stefan.kemper@artifex.com> | 2003-11-19 22:29:19 +0000 |
commit | d833a86ed51cb143753f80ec1e02ef00540ee773 (patch) | |
tree | 1ec2adcf98a335ffaade49d51c2acfbefecfaad4 /pxl | |
parent | fdee9c0e93855946de08db1183e49f6138a5b0fe (diff) |
Fix uninitialized DCT stream state memory ptr.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2002 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pxl')
-rw-r--r-- | pxl/pximage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pxl/pximage.c b/pxl/pximage.c index 6e9d4232a..c7c7df1f6 100644 --- a/pxl/pximage.c +++ b/pxl/pximage.c @@ -69,7 +69,7 @@ private void rc_free_px_pattern(gs_memory_t *mem, void *vptr, client_name_t cname) { px_pattern_t *pattern = vptr; - gs_free_string(mem, pattern->palette.data, pattern->palette.size, + gs_free_string(mem, (void *)pattern->palette.data, pattern->palette.size, cname); gs_free_object(mem, pattern->data, cname); gs_free_object(mem, pattern, cname); @@ -202,6 +202,7 @@ read_jpeg_bitmap_data(px_bitmap_enum_t *benum, byte **pdata, px_args_t *par) if ( !benum->initialized ) { jpeg_decompress_data *jddp = &(benum->jdd); /* use the graphics library support for DCT streams */ + ss->memory = benum->mem; s_DCTD_template.set_defaults((stream_state *)ss); ss->report_error = stream_error; ss->data.decompress = jddp; |