commit | 43d6823de9c7bf848bb606f6ee2209d0372473ab | [log] [tgz] |
---|---|---|
author | Adam Tkac <atkac@redhat.com> | Wed Jan 27 12:37:38 2010 +0000 |
committer | Adam Tkac <atkac@redhat.com> | Wed Jan 27 12:37:38 2010 +0000 |
tree | b62de1806f9dc126612b11a6fc2f7fd6d717f533 | |
parent | 3160a5606b75c45bf51964ec0107d0305698abb4 [diff] [blame] |
[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 689a527..5dfa5d2 100644 --- a/common/rfb/tightDecode.h +++ b/common/rfb/tightDecode.h
@@ -315,6 +315,8 @@ } } + delete [] rowPointer; + if (cinfo.out_color_space == JCS_RGB) myFormat.bufferFromRGB((rdr::U8*)buf, dstBuf, w * h);