コード例 #1
0
        //==========================================================================
        private void Dispose(bool disposing)
        {
            if (m_Handle != IntPtr.Zero)
            {
                m_Library.libvlc_release(m_Handle);
                m_Handle = IntPtr.Zero;
            }

            if (disposing)
            {
                if (m_Library != null)
                {
                    if (m_IsLibraryOwner)
                    {
                        LibVLCLibrary.Free(m_Library);
                    }
                    m_Library = null;
                }
            }
        }