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