From bace22a43fe5293f08ac42badbbe3f522645464f Mon Sep 17 00:00:00 2001 From: WiSo Date: Sat, 14 Sep 2013 19:09:30 +0200 Subject: [cximage] fixed memory leak in ximatif.cpp --- lib/cximage-6.0/CxImage/ximatif.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/cximage-6.0/CxImage/ximatif.cpp b/lib/cximage-6.0/CxImage/ximatif.cpp index 0018fa98f2..658392a824 100644 --- a/lib/cximage-6.0/CxImage/ximatif.cpp +++ b/lib/cximage-6.0/CxImage/ximatif.cpp @@ -316,6 +316,7 @@ bool CxImageTIF::Decode(CxFile * hFile) if (info.nEscape){ // - cancel decoding free(bits); + free(row_shifts); cx_throw("Cancelled"); } @@ -332,6 +333,7 @@ bool CxImageTIF::Decode(CxFile * hFile) if (TIFFReadTile(m_tif, tilebuf, col, ys, 0, 0) < 0){ free(tilebuf); free(bits); + free(row_shifts); cx_throw("Corrupted tiled TIFF file!"); } -- cgit v1.2.3