add: added finalizer
This commit is contained in:
parent
03cef5303a
commit
43719603d1
|
@ -99,6 +99,17 @@ public abstract class BaseEAX {
|
||||||
created = false;
|
created = false;
|
||||||
nDestroy();
|
nDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finalizer, marked final. To perform specialized cleanup override the
|
||||||
|
* cleanup() method.
|
||||||
|
*
|
||||||
|
* @see #cleanup()
|
||||||
|
*/
|
||||||
|
public void finalize() throws Throwable {
|
||||||
|
super.finalize();
|
||||||
|
destroy();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Native method the destroy the EAX
|
* Native method the destroy the EAX
|
||||||
|
|
Loading…
Reference in New Issue