diff options
author | Sam James <sam@gentoo.org> | 2022-03-29 10:27:10 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-17 12:53:05 +0100 |
commit | 085bde903b9e684c3c1160e4df912bea9a660997 (patch) | |
tree | c4f5e6e9f2422e869ca5bc0b944520d451001282 /base/gp_mspol.c | |
parent | Import Ghostscript 9.55 (diff) | |
download | ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.tar.gz ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.tar.bz2 ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.zip |
Import Ghostscript 9.56.0ghostscript-9.56
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'base/gp_mspol.c')
-rw-r--r-- | base/gp_mspol.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/base/gp_mspol.c b/base/gp_mspol.c index 560fb3fe..88d83171 100644 --- a/base/gp_mspol.c +++ b/base/gp_mspol.c @@ -32,10 +32,9 @@ int gp_check_interrupts(const gs_memory_t *mem) { -#ifndef GS_THREADSAFE +#ifdef DEBUG if(mem == NULL) { - /* MAJOR HACK will NOT work in multithreaded environment */ - mem = gs_lib_ctx_get_non_gc_memory_t(); + mem = gp_get_debug_mem_ptr(); } #endif if (mem && mem->gs_lib_ctx && mem->gs_lib_ctx->core->poll_fn) |