[libbluray-devel] HScene: dispose Graphics object after use

hpi1 git at videolan.org
Thu Apr 24 11:32:35 CEST 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Apr 24 12:15:46 2014 +0300| [977a0f23408c87a931ec5878a653eb56be0cfebf] | committer: hpi1

HScene: dispose Graphics object after use

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=977a0f23408c87a931ec5878a653eb56be0cfebf
---

 src/libbluray/bdj/java/org/havi/ui/HScene.java |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libbluray/bdj/java/org/havi/ui/HScene.java b/src/libbluray/bdj/java/org/havi/ui/HScene.java
index 390ddac..372ad05 100644
--- a/src/libbluray/bdj/java/org/havi/ui/HScene.java
+++ b/src/libbluray/bdj/java/org/havi/ui/HScene.java
@@ -256,6 +256,7 @@ public class HScene extends Container implements HComponentOrdering {
             Graphics g = GUIManager.getInstance().getGraphics();
             Rectangle r = getBounds();
             g.clearRect(r.x, r.y, r.width, r.height);
+            g.dispose();
 
             if (image != null) {
                 image.flush();



More information about the libbluray-devel mailing list