From be736c48e90e322d91d09609a5e40e984da447f9 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 1 Mar 2019 18:24:17 +1100 Subject: [PATCH] [c-host] dxgi: release resources --- c-host/windows/capture/dxgi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c-host/windows/capture/dxgi.c b/c-host/windows/capture/dxgi.c index daaa64e1..4d41e544 100644 --- a/c-host/windows/capture/dxgi.c +++ b/c-host/windows/capture/dxgi.c @@ -439,6 +439,9 @@ static CaptureResult dxgi_capture(bool * hasFrameUpdate, bool * hasPointerUpdate ID3D11DeviceContext_CopyResource(this->deviceContext, (ID3D11Resource *)this->texture, (ID3D11Resource *)src); + ID3D11Texture2D_Release(src); + IDXGIResource_Release(res); + *hasFrameUpdate = true; if (frameInfo.PointerShapeBufferSize > 0)