diff options
author | Joris Van Damme <joris.at.lebbeke@skynet.be> | 2006-03-25 03:09:24 +0000 |
---|---|---|
committer | Joris Van Damme <joris.at.lebbeke@skynet.be> | 2006-03-25 03:09:24 +0000 |
commit | 5dbfd5054d1d7c19702d793de9b81acaedcde3ea (patch) | |
tree | 6ded65f9bf758965cd44c06d750407953c493c6d /libtiff/tif_close.c | |
parent | b90b47e6f7565fa082ccc6dfe56e5ac73dd9867c (diff) | |
download | libtiff-git-5dbfd5054d1d7c19702d793de9b81acaedcde3ea.tar.gz |
*** empty log message ***
Diffstat (limited to 'libtiff/tif_close.c')
-rw-r--r-- | libtiff/tif_close.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libtiff/tif_close.c b/libtiff/tif_close.c index 8bed7ad3..aa8a38d0 100644 --- a/libtiff/tif_close.c +++ b/libtiff/tif_close.c @@ -1,4 +1,4 @@ -/* $Id: tif_close.c,v 1.9 2005-11-23 22:20:56 dron Exp $ */ +/* $Id: tif_close.c,v 1.10 2006-03-25 03:09:24 joris Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -54,27 +54,27 @@ TIFFCleanup(TIFF* tif) TIFFFreeDirectory(tif); if (tif->tif_dirlist) - _TIFFfree(tif->tif_dirlist); - + _TIFFfree(tif->tif_dirlist); + /* Clean up client info links */ while( tif->tif_clientinfo ) { - TIFFClientInfoLink *link = tif->tif_clientinfo; + TIFFClientInfoLink *link = tif->tif_clientinfo; - tif->tif_clientinfo = link->next; - _TIFFfree( link->name ); - _TIFFfree( link ); + tif->tif_clientinfo = link->next; + _TIFFfree( link->name ); + _TIFFfree( link ); } if (tif->tif_rawdata && (tif->tif_flags&TIFF_MYBUFFER)) - _TIFFfree(tif->tif_rawdata); + _TIFFfree(tif->tif_rawdata); if (isMapped(tif)) - TIFFUnmapFileContents(tif, tif->tif_base, tif->tif_size); + TIFFUnmapFileContents(tif, tif->tif_base, tif->tif_size); /* Clean up custom fields */ - if (tif->tif_nfields > 0) + if (tif->tif_nfields > 0) { - size_t i; + size_t i; for (i = 0; i < tif->tif_nfields; i++) { |