소스 검색

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->ReleaseSync(*next_key);
 
 
+	km->Release();
+	input_tex->Release();
+
 	return MFX_ERR_NONE;
 	return MFX_ERR_NONE;
 }
 }