summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2011-11-11 18:55:21 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2011-11-11 18:55:21 +0000
commita2ebd52641e7d639732127d11d11c1b6b166e04b (patch)
treeec132176f368ce8c44c103590f487e6d3d6d6d81 /java
parent74213fc66ff742465b5c37c96c649ce2c6de0973 (diff)
downloadtigervnc-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.java1
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;
}