Sfoglia il codice sorgente

obs-qsv11: Fix memory leak in QSV plugin module

Christine Lin 3 anni fa
parent
commit
2474775f40
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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;
 }