- 2005.12.22 07:06 "Re: [Tiff] CVS libtiff, new problem", by Andrey Kiselev
-
2006.01.23 16:39 "Re: [Tiff] LibTIff and Photoshop TIFF support (Multipage TIffs)", by Jeet Shroff
- 2006.01.22 23:55 "[Tiff] LibTIff and Photoshop TIFF support (Multipage TIffs)", by Jeet Shroff
- 2006.01.23 19:01 "Re: [Tiff] LibTIff and Photoshop TIFF support (Multipage TIffs)", by Chris Cox
- 2006.01.24 07:41 "Re: [Tiff] LibTIff and Photoshop TIFF support (Multipage TIffs)", by Kai-Uwe Behrmann
- 2006.03.06 08:06 "[Tiff] Re: Outrageous profile tag sizes reported by libtiff 3.8.0", by Mark Pazolli
- 2006.01.30 15:30 "Re: [Tiff] TIFFClose(var) doesnt release memory", by Bob Friesenhahn
2006.01.30 15:24 "Re: [Tiff] TIFFClose(var) doesnt release memory", by Bob Friesenhahn
According to the manual for TIFFClose() -- memory should be released but I it.., can someone point out why? dont see
You are leaking the image returned by TIFFOpen() due to a missing TIFFClose(image) before the continue statement.
Bob
Thanks in advance!
/**** CODE FOLLOWS *****/
TIFF *image;
while( listof_files < totalfiles )
{
if((image = TIFFOpen(s.c_str(), "r")) == NULL)
{
// BAD TIFF IMAGE
listof_files++;
continue;
}
else
{// GOOD TIFF IMAGE
listof_files++;
}
TIFFClose(image);
}
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/