add: added finalizer
This commit is contained in:
parent
03cef5303a
commit
43719603d1
|
@ -100,6 +100,17 @@ public abstract class BaseEAX {
|
|||
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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue