internal void CMtThread_Destruct() { Trace.MatchObjectDestroy(this, "CMtThread_Destruct"); CMtThread_CloseEvents(); if (Thread_WasCreated(mThread.mThread)) { mThread.LoopThread_StopAndWait(); mThread.LoopThread_Close(); } if (mMtCoder.mAlloc != null) { IAlloc_FreeBytes(mMtCoder.mAlloc, mOutBuf); } mOutBuf = null; if (mMtCoder.mAlloc != null) { IAlloc_FreeBytes(mMtCoder.mAlloc, mInBuf); } mInBuf = null; }