Community
cancel
Showing results for 
Search instead for 
Did you mean: 
dewildt
Beginner
84 Views

Memory leak in MPEG2VideoDecoderBase?

I think I found a small memory leak in MPEG2VideoDecoderBase:

In the beginning MPEG2VideoDecoderBase::Init() will call BaseCodec::Init().
If the initialization parameter of BaseCodecParams->lpMemoryAllocator is set to NULL, then BaseCodec::Init() will create an own instance of DefaultMemoryAllocator for m_pMemoryAllocator and m_bOwnAllocator is set to true.
In the further processing of MPEG2VideoDecoderBase::Init() the method Reset() is called which will set m_bOwnAllocator to false.
The result is that m_pMemoryAllocator will never be freed.

regards,
Daniel
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
84 Views

Thanks Daniel,

I'll forward this info to ourdevelopers. By the way what version of IPP do you use? Is that the latest IPP 5.3 release?

Regards,
Vladimir

Leonid_K_Intel
Employee
84 Views

It really happened and was fixed before IPP 5.2 gold.

Thanks,

Leonid

dewildt
Beginner
84 Views

I'm using the IPP-samples 5.3.083 (but that part of the code identical to that of version 5.3.095)
Reply