Commit 8cd231f5 authored by Filippo Carone's avatar Filippo Carone

Destroy the jvlc instance when the remove notify method is invoked (avoids some jvm crashes).

parent f50eb96c
...@@ -84,4 +84,12 @@ public class JVLCCanvas extends Canvas { ...@@ -84,4 +84,12 @@ public class JVLCCanvas extends Canvas {
return jvlc; return jvlc;
} }
/* (non-Javadoc)
* @see java.awt.Component#removeNotify()
*/
public void removeNotify() {
super.removeNotify();
jvlc.destroy();
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment