if (L.getCPtrPeer() != 0) L.unRef(LuaState.LUA_REGISTRYINDEX.intValue(), ref.intValue());
synchronized(L) { if (L.getCPtrPeer() != 0) L.unRef(LuaState.LUA_REGISTRYINDEX.intValue(), ref.intValue()); }
  protected void finalize()  {    try    {      if (L.getCPtrPeer() != 0)        L.unRef(LuaState.LUA_REGISTRYINDEX.intValue(), ref.intValue());    }    catch (Exception e)    {      System.err.println("Unable to release object " + ref);    }  }