Example #1
0
            protected override bool ReleaseHandle()
            {
#if (UNITY_IOS && !UNITY_EDITOR) || __IOS__
                if (_managed.IsAllocated)
                {
                    _managed.Free();
                }
#endif
                Native.YGConfigFree(this.handle);
                GC.KeepAlive(this);
                return(true);
            }
 protected override bool ReleaseHandle()
 {
     if (this.handle != Default.handle)
     {
         ReleaseManaged();
         if (!IsInvalid)
         {
             Native.YGConfigFree(this.handle);
         }
     }
     GC.KeepAlive(this);
     return(true);
 }
Example #3
0
 protected override bool ReleaseHandle()
 {
     Native.YGConfigFree(this.handle);
     GC.KeepAlive(this);
     return true;
 }