[AML] Memory leak while Dispose 

m_Codec should be deleted before nullify.
Merge pull request #4898 from ndogxj/patch-1

[AML] Memory leak while Dispose