add: added finalizer

This commit is contained in:
Brian Matzon 2002-09-12 01:26:27 +00:00
parent 03cef5303a
commit 43719603d1
1 changed files with 11 additions and 0 deletions

View File

@ -99,6 +99,17 @@ public abstract class BaseEAX {
created = false;
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