]> source.dussan.org Git - tigervnc.git/commitdiff
[Bugfix] Fix memory leak in Tight decoder.
authorAdam Tkac <atkac@redhat.com>
Wed, 27 Jan 2010 12:37:38 +0000 (12:37 +0000)
committerAdam Tkac <atkac@redhat.com>
Wed, 27 Jan 2010 12:37:38 +0000 (12:37 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3957 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/tightDecode.h

index 689a527ab7d69cc33356f93917fafe33b7721832..5dfa5d2d9b91b0bfb5edfc35f42977b6f7d91abb 100644 (file)
@@ -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);