summaryrefslogtreecommitdiff
path: root/devices
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2023-02-22 10:42:15 +0000
committerChris Liddell <chris.liddell@artifex.com>2023-02-22 11:27:47 +0000
commit70cd48834618ac7accb2e40799a68d3024454de8 (patch)
tree11c57916e5dc7c2363a349d0c5ed5b022c19de52 /devices
parent8cfe505e168185fecd1b573711c68252aefb9f77 (diff)
downloadghostpdl-70cd48834618ac7accb2e40799a68d3024454de8.tar.gz
xpswrite: Use correct allocator to free libtiff client data
The libtiff client was allocated using a different memory manager instance than when it was freed - this coincidenally works when running gs, but segfaults running gpdl. Issue arose in the nightly regression tests.
Diffstat (limited to 'devices')
-rw-r--r--devices/vector/gdevxps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/devices/vector/gdevxps.c b/devices/vector/gdevxps.c
index af0b32710..94ae90ac9 100644
--- a/devices/vector/gdevxps.c
+++ b/devices/vector/gdevxps.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2022 Artifex Software, Inc.
+/* Copyright (C) 2001-2023 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -2635,7 +2635,7 @@ static void xps_tiff_cleanup(xps_image_enum_t *xpie)
void *t = TIFFClientdata(xpie->tif);
TIFFCleanup(xpie->tif);
xpie->tif = NULL;
- gs_free_object(xpie->memory->non_gc_memory, t, "xps_image_enum_finalize");
+ gs_free_object(xpie->dev->memory->non_gc_memory, t, "xps_image_enum_finalize");
}
}