]> git.sesse.net Git - vlc/commitdiff
Destroy the jvlc instance when the remove notify method is invoked (avoids some jvm...
authorFilippo Carone <littlejohn@videolan.org>
Sun, 13 May 2007 19:08:59 +0000 (19:08 +0000)
committerFilippo Carone <littlejohn@videolan.org>
Sun, 13 May 2007 19:08:59 +0000 (19:08 +0000)
bindings/java/org/videolan/jvlc/JVLCCanvas.java

index 7eb75a039a12358ab90bd84906128fc3774ef9b8..2caf12e8765500ed4e1ce4322d03c62693eeb437 100644 (file)
@@ -83,5 +83,13 @@ public class JVLCCanvas extends Canvas {
     public JVLC getJVLC() {
         return jvlc;
     }
+    
+    /* (non-Javadoc)
+     * @see java.awt.Component#removeNotify()
+     */
+    public void removeNotify() {
+       super.removeNotify();
+       jvlc.destroy();
+    }
 
 }