mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 17:33:08 +03:00
Added comment
This commit is contained in:
parent
e45da2ae17
commit
0835be95cb
|
@ -720,9 +720,14 @@ ImagingLibTiffDecode(
|
||||||
}
|
}
|
||||||
|
|
||||||
decode_err:
|
decode_err:
|
||||||
|
// TIFFClose in libtiff calls tif_closeproc and TIFFCleanup
|
||||||
if (clientstate->fp) {
|
if (clientstate->fp) {
|
||||||
|
// Pillow will manage the closing of the file rather than libtiff
|
||||||
|
// So only call TIFFCleanup
|
||||||
TIFFCleanup(tiff);
|
TIFFCleanup(tiff);
|
||||||
} else {
|
} else {
|
||||||
|
// When tif_closeproc refers to our custom _tiffCloseProc though,
|
||||||
|
// that is fine, as it does not close the file
|
||||||
TIFFClose(tiff);
|
TIFFClose(tiff);
|
||||||
}
|
}
|
||||||
TRACE(("Done Decoding, Returning \n"));
|
TRACE(("Done Decoding, Returning \n"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user