FT_Outline_Done_Internal() private method

private FT_Outline_Done_Internal ( IntPtr memory, IntPtr outline ) : System.Error
memory System.IntPtr
outline System.IntPtr
return System.Error
Example #1
0
        private void Dispose(bool disposing)
        {
            if (!disposed)
            {
                disposed = true;

                if (!duplicate)
                {
                    if (parentLibrary != null)
                    {
                        FT.FT_Outline_Done(parentLibrary.Reference, reference);
                    }
                    else
                    {
                        FT.FT_Outline_Done_Internal(parentMemory.Reference, reference);
                    }

                    // removes itself from the parent Library, with a check to prevent this from happening when Library is
                    // being disposed (Library disposes all it's children with a foreach loop, this causes an
                    // InvalidOperationException for modifying a collection during enumeration)
                    if (!parentLibrary.IsDisposed)
                    {
                        parentLibrary.RemoveChildOutline(this);
                    }
                }

                reference = IntPtr.Zero;
                rec       = default(OutlineRec);
            }
        }