From b8fd99bdd5338f8f410af012e728ad15f48a48c8 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Wed, 15 Nov 2023 12:13:44 +0800 Subject: [PATCH] vpp: avoid double free Free() might be called multiple times, we should avoid double free in Free(). Signed-off-by: Haihao Xiang --- _studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp b/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp index b451fbcdb5..dce0366791 100644 --- a/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp +++ b/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp @@ -7180,6 +7180,8 @@ mfxStatus MfxFrameAllocResponse::Free( void ) NumFrameActual = m_numFrameActualReturnedByAllocFrames; m_core->FreeFrames(this); } + + mids = NULL; } return MFX_ERR_NONE;