瀏覽代碼

obs-qsv11: Fix memory leak in QSV plugin module

Christine Lin 3 年之前
父節點
當前提交
2474775f40
共有 1 個文件被更改,包括 3 次插入0 次删除
  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;
 }