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
......@@ -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();
}
}
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