diff options
author | Joris Van Damme <joris.at.lebbeke@skynet.be> | 2007-06-23 01:32:31 +0000 |
---|---|---|
committer | Joris Van Damme <joris.at.lebbeke@skynet.be> | 2007-06-23 01:32:31 +0000 |
commit | d8a844d08d7576af4ec167407e330a4667eddd15 (patch) | |
tree | 17dff674429b303f9355321bfa06a9a45716cdc4 /libtiff/tif_close.c | |
parent | 4ef858724a9e76aa6167b3d183b22406646eedca (diff) | |
download | libtiff-git-d8a844d08d7576af4ec167407e330a4667eddd15.tar.gz |
BigTIFF upgrade: misc little things
Diffstat (limited to 'libtiff/tif_close.c')
-rw-r--r-- | libtiff/tif_close.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libtiff/tif_close.c b/libtiff/tif_close.c index f8a5cccf..93d8625d 100644 --- a/libtiff/tif_close.c +++ b/libtiff/tif_close.c @@ -1,4 +1,4 @@ -/* $Id: tif_close.c,v 1.11 2007-04-04 04:16:07 joris Exp $ */ +/* $Id: tif_close.c,v 1.12 2007-06-23 01:32:31 joris Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -46,10 +46,10 @@ void TIFFCleanup(TIFF* tif) { if (tif->tif_mode != O_RDONLY) - /* - * Flush buffered data and directory (if dirty). - */ - TIFFFlush(tif); + /* + * Flush buffered data and directory (if dirty). + */ + TIFFFlush(tif); (*tif->tif_cleanup)(tif); TIFFFreeDirectory(tif); @@ -76,18 +76,18 @@ TIFFCleanup(TIFF* tif) { uint32 i; - for (i = 0; i < tif->tif_nfields; i++) - { - TIFFFieldInfo *fld = tif->tif_fieldinfo[i]; - if (fld->field_bit == FIELD_CUSTOM && - strncmp("Tag ", fld->field_name, 4) == 0) + for (i = 0; i < tif->tif_nfields; i++) { - _TIFFfree(fld->field_name); - _TIFFfree(fld); + TIFFFieldInfo *fld = tif->tif_fieldinfo[i]; + if (fld->field_bit == FIELD_CUSTOM && + strncmp("Tag ", fld->field_name, 4) == 0) + { + _TIFFfree(fld->field_name); + _TIFFfree(fld); + } } - } - - _TIFFfree(tif->tif_fieldinfo); + + _TIFFfree(tif->tif_fieldinfo); } _TIFFfree(tif); |