FT_Done_Glyph() private method

private FT_Done_Glyph ( IntPtr glyph ) : void
glyph System.IntPtr
return void
Exemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            FT.FT_Done_Glyph(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 (!Library.IsDisposed)
            {
                Library.RemoveChildGlyph(this);
            }
        }
Exemplo n.º 2
0
        private void Dispose(bool disposing)
        {
            if (!disposed)
            {
                disposed = true;

                FT.FT_Done_Glyph(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.RemoveChildGlyph(this);
                }

                reference = IntPtr.Zero;
            }
        }