From 2474775f40df39e58cc199733f94d59f90b5cc27 Mon Sep 17 00:00:00 2001 From: Christine Lin Date: Wed, 19 Jan 2022 17:13:17 -0800 Subject: [PATCH] obs-qsv11: Fix memory leak in QSV plugin module --- plugins/obs-qsv11/common_directx11.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/obs-qsv11/common_directx11.cpp b/plugins/obs-qsv11/common_directx11.cpp index 086a238ac..89df82622 100644 --- a/plugins/obs-qsv11/common_directx11.cpp +++ b/plugins/obs-qsv11/common_directx11.cpp @@ -460,6 +460,9 @@ mfxStatus simple_copytex(mfxHDL pthis, mfxMemId mid, mfxU32 tex_handle, km->ReleaseSync(*next_key); + km->Release(); + input_tex->Release(); + return MFX_ERR_NONE; }