summaryrefslogtreecommitdiff
path: root/libtiff/tif_pixarlog.c
diff options
context:
space:
mode:
authorAndrey Kiselev <dron@ak4719.spb.edu>2006-03-07 11:59:12 +0000
committerAndrey Kiselev <dron@ak4719.spb.edu>2006-03-07 11:59:12 +0000
commit69ab321621c94cfc88d68994dc9536aba7252d43 (patch)
tree56cbeeab7867d200fe2b8a08003640f0b2a087d5 /libtiff/tif_pixarlog.c
parentc1f6d214248e46b73120ade1d9188275e7afbe4c (diff)
downloadlibtiff-git-69ab321621c94cfc88d68994dc9536aba7252d43.tar.gz
Properly restore setfield/getfield methods in cleanup functions. As per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=1102
Diffstat (limited to 'libtiff/tif_pixarlog.c')
-rw-r--r--libtiff/tif_pixarlog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libtiff/tif_pixarlog.c b/libtiff/tif_pixarlog.c
index 80022b2e..c3e18151 100644
--- a/libtiff/tif_pixarlog.c
+++ b/libtiff/tif_pixarlog.c
@@ -1,4 +1,4 @@
-/* $Id: tif_pixarlog.c,v 1.12 2006-03-03 14:13:01 dron Exp $ */
+/* $Id: tif_pixarlog.c,v 1.13 2006-03-07 11:59:12 dron Exp $ */
/*
* Copyright (c) 1996-1997 Sam Leffler
@@ -1167,6 +1167,9 @@ PixarLogCleanup(TIFF* tif)
(void)TIFFPredictorCleanup(tif);
+ tif->tif_tagmethods.vgetfield = sp->vgetparent;
+ tif->tif_tagmethods.vsetfield = sp->vsetparent;
+
if (sp->FromLT2) _TIFFfree(sp->FromLT2);
if (sp->From14) _TIFFfree(sp->From14);
if (sp->From8) _TIFFfree(sp->From8);