"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "devices/gdevpsd.c" between
ghostscript-9.28rc1.tar.xz and ghostscript-9.28rc2.tar.xz

About: Ghostscript is an interpreter and rendering engine for the PostScript language and for PDF (GPL release). Release candidate.

gdevpsd.c  (ghostscript-9.28rc1.tar.xz):gdevpsd.c  (ghostscript-9.28rc2.tar.xz)
skipping to change at line 1300 skipping to change at line 1300
/* Write empty process color in the area */ /* Write empty process color in the area */
memset(sep_line,255,octets_per_line); memset(sep_line,255,octets_per_line);
psd_write(xc, sep_line, octets_per_line); psd_write(xc, sep_line, octets_per_line);
} }
code = gp_fseek(xc->f, ((gs_offset_t)xc->height-1) * octets_per_line , SEEK_CUR); code = gp_fseek(xc->f, ((gs_offset_t)xc->height-1) * octets_per_line , SEEK_CUR);
if (code < 0) { if (code < 0) {
code = gs_note_error(gs_error_ioerror); code = gs_note_error(gs_error_ioerror);
goto cleanup; goto cleanup;
} }
} }
if (j < xc->height-1) if (j < xc->height-1) {
code = gp_fseek(xc->f, -((gs_offset_t)num_comp * xc->height - 1) * o ctets_per_line, SEEK_CUR); code = gp_fseek(xc->f, -((gs_offset_t)num_comp * xc->height - 1) * o ctets_per_line, SEEK_CUR);
if (code < 0) { if (code < 0) {
code = gs_note_error(gs_error_ioerror); code = gs_note_error(gs_error_ioerror);
goto cleanup; goto cleanup;
} }
}
} }
cleanup: cleanup:
gx_downscaler_fin(&ds); gx_downscaler_fin(&ds);
gs_free_object(pdev->memory, sep_line, "psd_write_sep_line"); gs_free_object(pdev->memory, sep_line, "psd_write_sep_line");
for (chan_idx = 0; chan_idx < num_comp; chan_idx++) { for (chan_idx = 0; chan_idx < num_comp; chan_idx++) {
gs_free_object(pdev->memory, planes[chan_idx], gs_free_object(pdev->memory, planes[chan_idx],
"psd_write_image_data"); "psd_write_image_data");
} }
return code; return code;
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)