예제 #1
0
파일: Script.java 프로젝트: kloper/openvrml
 /** Finalize. */
 protected void finalize() throws Throwable {
   try {
     this.dispose();
   } finally {
     super.finalize();
   }
 }
예제 #2
0
파일: Script.java 프로젝트: kloper/openvrml
 /**
  * Destroy the native peer instance.
  *
  * <p>Normally this method is called from {@link Script#finalize()}. If it is called before
  * finalization, only {@link Script#finalize()} can safely be called on the instance subsequently.
  */
 protected void dispose() {
   //
   // scriptPeer isn't an owning reference; we can just set it to 0.
   //
   if (this.scriptPeer != 0) {
     this.scriptPeer = 0;
   }
   super.dispose();
 }