[LIBTIFF]
[reactos.git] / reactos / dll / 3rdparty / libtiff / tif_close.c
index c3ff0ff..fffae4a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: tif_close.c,v 1.19 2010-03-10 18:56:48 bfriesen Exp $ */
+/* $Id: tif_close.c,v 1.21 2016-01-23 21:20:34 erouault Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -29,6 +29,7 @@
  */
 
 #include <precomp.h>
+//#include <string.h>
 
 /************************************************************************/
 /*                            TIFFCleanup()                             */
@@ -36,7 +37,7 @@
 
 /**
  * Auxiliary function to free the TIFF structure. Given structure will be
- * completetly freed, so you should save opened file handle and pointer
+ * completely freed, so you should save opened file handle and pointer
  * to the close procedure in external variables before calling
  * _TIFFCleanup(), if you will need these ones to close the file.
  * 
@@ -62,11 +63,11 @@ TIFFCleanup(TIFF* tif)
          */
        while( tif->tif_clientinfo )
        {
-               TIFFClientInfoLink *link = tif->tif_clientinfo;
+               TIFFClientInfoLink *psLink = tif->tif_clientinfo;
 
-               tif->tif_clientinfo = link->next;
-               _TIFFfree( link->name );
-               _TIFFfree( link );
+               tif->tif_clientinfo = psLink->next;
+               _TIFFfree( psLink->name );
+               _TIFFfree( psLink );
        }
 
        if (tif->tif_rawdata && (tif->tif_flags&TIFF_MYBUFFER))