Browse Source

obs-qsv11: Fix memory leak in QSV plugin module

Christine Lin 3 years ago
parent
commit
2474775f40
1 changed files with 3 additions and 0 deletions
  1. 3 0
      plugins/obs-qsv11/common_directx11.cpp

+ 3 - 0
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;
 }