- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It really happened and was fixed before IPP 5.2 gold.
Thanks,
Leonid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using the IPP-samples 5.3.083 (but that part of the code identical to that of version 5.3.095)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page