[libbluray-devel] BDGraphics.dispose(): drop references to resources

hpi1 git at videolan.org
Fri Nov 21 11:01:41 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Nov 20 10:35:59 2014 +0200| [aa404a0341e64c6ce8a602e4119077ef4cf5494c] | committer: hpi1

BDGraphics.dispose(): drop references to resources

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

 src/libbluray/bdj/java/java/awt/BDGraphicsBase.java |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java b/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java
index 1bf74c3..0c7d403 100644
--- a/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java
+++ b/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java
@@ -1449,6 +1449,10 @@ abstract class BDGraphicsBase extends Graphics2D implements ConstrainableGraphic
 
     public void dispose() {
         tmpLine = null;
+        font = null;
+        fontMetrics = null;
+        gc = null;
+        backBuffer = null;
     }
 
     public String toString() {



More information about the libbluray-devel mailing list