Explorar o código

obs-qsv11: Fix memory leak in QSV plugin module

Christine Lin %!s(int64=3) %!d(string=hai) anos
pai
achega
2474775f40
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
 }