diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2022-03-11 10:37:14 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-03-14 13:31:38 +0000 |
commit | d4e52b57b525dacdb1d4f6aabc0c3ab5b76447cb (patch) | |
tree | fc792bea34b7e7547cd5cbc56906ea6a0ee40b35 | |
parent | d115cfcb622db3cf7649fbaff2f65f1fe3b14cd4 (diff) | |
download | ghostpdl-d4e52b57b525dacdb1d4f6aabc0c3ab5b76447cb.tar.gz |
Use the correct VM mode to allocate device container
We need to use the same VM mode (allocator) to allocate the Postscript device
container as the device itself was allocated from.
From the debug-Z@ nightly test:
./gpdl -I/home/regression/cluster/gs.2/lib \
-sOutputFile=tests_private__comparefiles__Bug695765.pdf.pdf.ppmraw.72.0..gpdl_pdf.pdf \
-Z@ -sDEVICE=pdfwrite -r72 -Z: -sDEFAULTPAPERSIZE=letter -dNOPAUSE -dBATCH -dClusterJob \
../../tests_private/comparefiles/Bug695765.pdf
-rw-r--r-- | psi/zdevice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psi/zdevice.c b/psi/zdevice.c index 349c2fd3b..99beaff7f 100644 --- a/psi/zdevice.c +++ b/psi/zdevice.c @@ -120,7 +120,7 @@ zcurrentdevice(i_ctx_t *i_ctx_p) gs_ref_memory_t *mem = (gs_ref_memory_t *) dev->memory; psi_device_ref *psdev; - psdev = gs_alloc_struct(imemory, psi_device_ref, &st_psi_device_ref, "zcurrentdevice"); + psdev = gs_alloc_struct(dev->memory, psi_device_ref, &st_psi_device_ref, "zcurrentdevice"); if (!psdev) { return_error(gs_error_VMerror); } @@ -154,7 +154,7 @@ zcurrentoutputdevice(i_ctx_t *i_ctx_p) if (code < 0) return code; - psdev = gs_alloc_struct(imemory, psi_device_ref, &st_psi_device_ref, "zcurrentdevice"); + psdev = gs_alloc_struct(dev->memory, psi_device_ref, &st_psi_device_ref, "zcurrentdevice"); if (!psdev) { return_error(gs_error_VMerror); } |