MediaSDK
MediaSDK copied to clipboard
Sample_encode: CEncodingPipeline::m_pUserModule useless
In the sample sample_encode, the class CEncodingPipeline declares a member m_pUserModule. However, it is not consumed and the memory is not freed in the Close method.
Hi, looks like it is declare with unique_ptr and that fact allows to not free it
The problem is that m_pUserModule is associated m_mfxSession and m_mfxSession is closed in method CEncodingPipeline::Close(). Because m_pUserModule is not deleted, m_pUserModule is linked with an invalid session.