}
return null;
}
+ @Override
protected void finalize() {
- destroy();
+ try {
+ nativeFinalize();
+ } catch (Throwable e) {
+ e.printStackTrace();
+ }
}
public native void restore();
- /**
- * Destroy the VM
- */
- public native void destroy();
+ private native void nativeFinalize();