Dont free colormap tables in PHOTOMETRIC_PALETTE

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7620 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2000-09-27 15:16:42 +00:00
parent 35e02eb955
commit 135259b7c2
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2000-09-27 Adam Fedor <fedor@gnu.org>
* Source/tiff.m (NSTiffRead): For PHOTOMETRIC_PALETTE, don't free
colormap tables, they are owned by libtiff.
2000-09-26 Lyndon Tremblay <humasect@home.com>

View file

@ -406,9 +406,6 @@ NSTiffRead(TIFF* image, NSTiffInfo* info, char* data)
inP++;
}
}
free(map->red);
free(map->green);
free(map->blue);
free(map);
}
break;
@ -584,3 +581,5 @@ NSTiffGetColormap(TIFF* image)
free(info);
return map;
}