summaryrefslogtreecommitdiff
path: root/devices/gdevcmykog.c
diff options
context:
space:
mode:
authorMarcos H. Woehrmann <marcos.woehrmann@artifex.com>2016-04-22 11:55:57 -0700
committerMarcos H. Woehrmann <marcos.woehrmann@artifex.com>2016-04-22 11:58:23 -0700
commit644914cb5cef5b6138cb5f2a2ac541ea2333edc1 (patch)
tree9d8c205cac3f10425ec0cc13c2d9c96cb24c0600 /devices/gdevcmykog.c
parent263b9e169ec5cf09c4b671ef9ea58f3e0edbe994 (diff)
downloadghostpdl-644914cb5cef5b6138cb5f2a2ac541ea2333edc1.tar.gz
Bug 696726: gdevcmykog.c - insure that temp files are deleted
Call gp_open_scratch_file_rm() instead of gp_open_scratch_file() to insure that no temp files are left around if Ghostscript is killed or crashes.
Diffstat (limited to 'devices/gdevcmykog.c')
-rw-r--r--devices/gdevcmykog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/gdevcmykog.c b/devices/gdevcmykog.c
index d2f68ba06..db8044c57 100644
--- a/devices/gdevcmykog.c
+++ b/devices/gdevcmykog.c
@@ -648,7 +648,7 @@ cmykog_print_page(gx_device_printer * pdev, FILE * prn_stream)
* We will then copy this data into the target file at the end. */
arg->spot_file[0] = prn_stream;
for(i = 1; i < ncomp; i++) {
- arg->spot_file[i] = gp_open_scratch_file(pdev->memory, gp_scratch_file_name_prefix, &(arg->spot_name[i][0]), "w+b");
+ arg->spot_file[i] = gp_open_scratch_file_rm(pdev->memory, gp_scratch_file_name_prefix, &(arg->spot_name[i][0]), "w+b");
if (arg->spot_file[i] == NULL) {
code = gs_error_invalidfileaccess;
goto prn_done;