diff options
author | WiSo <wiso@xbmc.org> | 2013-09-14 19:09:30 +0200 |
---|---|---|
committer | WiSo <wiso@xbmc.org> | 2013-09-15 00:52:35 +0200 |
commit | bace22a43fe5293f08ac42badbbe3f522645464f (patch) | |
tree | aaa4567f3d1e23d9d062d3b1075135abbcf593f4 /lib | |
parent | 767a6a9876df649e30af5855ae795c952c0030a6 (diff) |
[cximage] fixed memory leak in ximatif.cpp
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cximage-6.0/CxImage/ximatif.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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){ // <vho> - 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!"); } |