[libbluray-devel] GUIManager.dispose(): always set instance to null

hpi1 git at videolan.org
Wed Mar 12 19:38:36 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Mar 12 20:35:12 2014 +0200| [abed972e4aaa783a50c5940d0e3e5181bf3fe6ea] | committer: hpi1

GUIManager.dispose(): always set instance to null

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

 src/libbluray/bdj/java/org/videolan/GUIManager.java |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/GUIManager.java b/src/libbluray/bdj/java/org/videolan/GUIManager.java
index 89d5845..c4a56b5 100644
--- a/src/libbluray/bdj/java/org/videolan/GUIManager.java
+++ b/src/libbluray/bdj/java/org/videolan/GUIManager.java
@@ -80,8 +80,11 @@ public class GUIManager extends BDRootWindow {
     }
 
     public void dispose() {
-        super.dispose();
-        instance = null;
+        try {
+            super.dispose();
+        } finally {
+            instance = null;
+        }
     }
 
     private static GUIManager instance = null;



More information about the libbluray-devel mailing list