mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
add: added finalizer
This commit is contained in:
parent
03cef5303a
commit
43719603d1
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue