Fixed small memleak when saving compressed TIFFs, on behalf of GreatBull; see issue #649
This commit is contained in:
@@ -787,7 +787,7 @@ int ImageIO::saveTIFF (Glib::ustring fname, int bps, bool uncompressed) {
|
|||||||
|
|
||||||
exif->write (8, buffer);
|
exif->write (8, buffer);
|
||||||
write (TIFFFileno (out), buffer+8, exif_size);
|
write (TIFFFileno (out), buffer+8, exif_size);
|
||||||
delete buffer;
|
delete[] buffer;
|
||||||
// let libtiff know that scanlines or any other following stuff should go
|
// let libtiff know that scanlines or any other following stuff should go
|
||||||
// at a different offset:
|
// at a different offset:
|
||||||
TIFFSetWriteOffset (out, exif_size+8);
|
TIFFSetWriteOffset (out, exif_size+8);
|
||||||
|
Reference in New Issue
Block a user