diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2012-04-21 00:44:08 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2012-04-21 00:44:08 +0000 |
commit | a62502e3e2656e7810b8a00e8cd57c025952512a (patch) | |
tree | 0f25c81b5fa1b4dd3c6bb120e5b9d9ebe67a59a7 /java | |
parent | c1fcef03cdf37d6bfa3b552985a5b9e6b4f26e69 (diff) | |
download | tigervnc-a62502e3e2656e7810b8a00e8cd57c025952512a.tar.gz tigervnc-a62502e3e2656e7810b8a00e8cd57c025952512a.zip |
dispose of graphics object to prevent memory leaks
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4892 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r-- | java/com/tigervnc/vncviewer/DesktopWindow.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/tigervnc/vncviewer/DesktopWindow.java b/java/com/tigervnc/vncviewer/DesktopWindow.java index 46910c70..178f93d2 100644 --- a/java/com/tigervnc/vncviewer/DesktopWindow.java +++ b/java/com/tigervnc/vncviewer/DesktopWindow.java @@ -327,6 +327,7 @@ class DesktopWindow extends JPanel implements } else { g2.drawImage(im.getImage(), 0, 0, null); } + g2.dispose(); } String oldContents = ""; |