Skip to content

Commit

Permalink
vpp: avoid double free
Browse files Browse the repository at this point in the history
Free() is called in the deconstructor of MfxFrameAllocResponse

Signed-off-by: Haihao Xiang <[email protected]>
  • Loading branch information
xhaihao committed Nov 15, 2023
1 parent edeb2a1 commit f1b7a52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3292,8 +3292,9 @@ mfxStatus VideoVPPHW::Close()
{
mfxStatus sts = MFX_ERR_NONE;

m_internalVidSurf[VPP_IN].Free();
m_internalVidSurf[VPP_OUT].Free();
// Free() is called in MfxFrameAllocResponse::~MfxFrameAllocResponse()
// m_internalVidSurf[VPP_IN].Free();
// m_internalVidSurf[VPP_OUT].Free();

m_executeSurf.clear();

Expand Down

0 comments on commit f1b7a52

Please sign in to comment.