diff options
author | Marcos H. Woehrmann <marcos.woehrmann@artifex.com> | 2016-04-22 11:55:57 -0700 |
---|---|---|
committer | Marcos H. Woehrmann <marcos.woehrmann@artifex.com> | 2016-04-22 11:58:23 -0700 |
commit | 644914cb5cef5b6138cb5f2a2ac541ea2333edc1 (patch) | |
tree | 9d8c205cac3f10425ec0cc13c2d9c96cb24c0600 /devices/gdevcmykog.c | |
parent | 263b9e169ec5cf09c4b671ef9ea58f3e0edbe994 (diff) | |
download | ghostpdl-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.c | 2 |
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; |