diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-09-27 11:19:24 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-10-20 18:22:47 +0200 |
commit | cc6be9c3577168805ec34b2d396e63361012282b (patch) | |
tree | 7dc794b08a1a6a786d540516c623cb1eebfb1863 /base/gximage4.c | |
parent | Import Ghostscript 9.54 (diff) | |
download | ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.tar.gz ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.tar.bz2 ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.zip |
Import Ghostscript 9.55ghostscript-9.55
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'base/gximage4.c')
-rw-r--r-- | base/gximage4.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/gximage4.c b/base/gximage4.c index 1a3a4761..0c96da49 100644 --- a/base/gximage4.c +++ b/base/gximage4.c @@ -35,7 +35,7 @@ static image_proc_sput(gx_image4_sput); static image_proc_sget(gx_image4_sget); static image_proc_release(gx_image4_release); const gx_image_type_t gs_image_type_4 = { - &st_gs_image4, gx_begin_image4, gx_data_image_source_size, + &st_gs_image4, gx_begin_image4, gx_image4_sput, gx_image4_sget, gx_image4_release, 4 }; /* @@ -66,7 +66,7 @@ gx_begin_image4(gx_device * dev, const gx_drawing_color * pdcolor, const gx_clip_path * pcpath, gs_memory_t * mem, gx_image_enum_common_t ** pinfo) { - gx_image_enum *penum; + gx_image_enum *penum = NULL; const gs_image4_t *pim = (const gs_image4_t *)pic; int code = gx_image_enum_alloc(pic, prect, mem, &penum); @@ -109,6 +109,7 @@ gx_begin_image4(gx_device * dev, if (code >= 0) *pinfo = (gx_image_enum_common_t *)penum; else { + gs_free_object(mem, penum, "gx_begin_image4"); *pinfo = NULL; } return code; |