diff options
author | Andrey Kiselev <dron@ak4719.spb.edu> | 2003-09-25 08:02:46 +0000 |
---|---|---|
committer | Andrey Kiselev <dron@ak4719.spb.edu> | 2003-09-25 08:02:46 +0000 |
commit | e8e4fc8dd2220a55406a32454b5898117a015e89 (patch) | |
tree | 032d07a76b294c2793b9c6c4fa229e6da24e3afe /libtiff/tif_close.c | |
parent | 44681006673a9331af4628e18811b3cd87bbdfdb (diff) | |
download | libtiff-git-e8e4fc8dd2220a55406a32454b5898117a015e89.tar.gz |
Store a list of opened IFD to prevent looping as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=383
Diffstat (limited to 'libtiff/tif_close.c')
-rw-r--r-- | libtiff/tif_close.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libtiff/tif_close.c b/libtiff/tif_close.c index 8a6065af..05441068 100644 --- a/libtiff/tif_close.c +++ b/libtiff/tif_close.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_close.c,v 1.4 2002-08-15 12:59:25 warmerda Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_close.c,v 1.5 2003-09-25 08:02:46 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -39,6 +39,9 @@ TIFFClose(TIFF* tif) TIFFFlush(tif); (*tif->tif_cleanup)(tif); TIFFFreeDirectory(tif); + + if (tif->tif_dirlist) + _TIFFfree(tif->tif_dirlist); /* Clean up client info links */ while( tif->tif_clientinfo ) |