[AML] Memory leak while Dispose

m_Codec should be deleted before nullify.