Esempio n. 1
0
 public override void Dispose(bool disposeManagedResources)
 {
     if (valueref != 0)
     {
         LuaState.UnRefAction act = (IntPtr ptr, int r) =>
         {
             LuaObject.RemoveDelgate(ptr, r);
             LuaNativeMethods.lua_unref(ptr, r);
         };
         state.GCRef(act, valueref);
         valueref = 0;
     }
 }