Commit 2f04bcf5 authored by Filippo Carone's avatar Filippo Carone

check for beingdestroyed in finalize, thx to Tony Anecito

parent 27a70dcc
...@@ -162,7 +162,10 @@ public class JVLC implements Runnable { ...@@ -162,7 +162,10 @@ public class JVLC implements Runnable {
* @see java.lang.Object#finalize() * @see java.lang.Object#finalize()
*/ */
protected void finalize() throws Throwable { protected void finalize() throws Throwable {
if (!beingDestroyed)
{
destroy(); destroy();
}
super.finalize(); super.finalize();
} }
......
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