diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2011-11-11 18:55:21 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2011-11-11 18:55:21 +0000 |
commit | a2ebd52641e7d639732127d11d11c1b6b166e04b (patch) | |
tree | ec132176f368ce8c44c103590f487e6d3d6d6d81 /java | |
parent | 74213fc66ff742465b5c37c96c649ce2c6de0973 (diff) | |
download | tigervnc-a2ebd52641e7d639732127d11d11c1b6b166e04b.tar.gz tigervnc-a2ebd52641e7d639732127d11d11c1b6b166e04b.zip |
null out BufferedImage object to make sure it doesn't lead to a memory leak
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4795 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r-- | java/com/tigervnc/rfb/TightDecoder.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/tigervnc/rfb/TightDecoder.java b/java/com/tigervnc/rfb/TightDecoder.java index 38d63626..8c2275f9 100644 --- a/java/com/tigervnc/rfb/TightDecoder.java +++ b/java/com/tigervnc/rfb/TightDecoder.java @@ -106,6 +106,7 @@ public class TightDecoder extends Decoder { e.printStackTrace(); } jpeg.getRGB(0, 0, r.width(), r.height(), buf, 0, r.width()); + jpeg = null; handler.imageRect(r, buf); return; } |