From a2ebd52641e7d639732127d11d11c1b6b166e04b Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Fri, 11 Nov 2011 18:55:21 +0000 Subject: [PATCH] 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 --- java/com/tigervnc/rfb/TightDecoder.java | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.5