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)
org/videolan/jvlc/JVLCCanvas.java

index 7eb75a0..2caf12e 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();
+    }
 
 }