From: Adam Tkac Date: Wed, 27 Jan 2010 12:37:38 +0000 (+0000) Subject: [Bugfix] Fix memory leak in Tight decoder. X-Git-Tag: v1.0.90~347 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=43d6823de9c7bf848bb606f6ee2209d0372473ab;p=tigervnc.git [Bugfix] Fix memory leak in Tight decoder. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3957 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/common/rfb/tightDecode.h b/common/rfb/tightDecode.h index 689a527a..5dfa5d2d 100644 --- a/common/rfb/tightDecode.h +++ b/common/rfb/tightDecode.h @@ -315,6 +315,8 @@ DecompressJpegRect(const Rect& r, rdr::InStream* is, } } + delete [] rowPointer; + if (cinfo.out_color_space == JCS_RGB) myFormat.bufferFromRGB((rdr::U8*)buf, dstBuf, w * h);