From: Jesse Natalie Date: Mon, 29 Aug 2022 19:17:37 +0000 (-0700) Subject: d3d12: Release sharing contract in flush_frontbuffer X-Git-Tag: upstream/22.3.5~1442 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fad769c13f57add5fa7586c04fd1c6bcaa67c43;p=platform%2Fupstream%2Fmesa.git d3d12: Release sharing contract in flush_frontbuffer Just a leak I happened to notice. Reviewed-by: Sil Vilerino Part-of: --- diff --git a/src/gallium/drivers/d3d12/d3d12_screen.cpp b/src/gallium/drivers/d3d12/d3d12_screen.cpp index 68a03f7..1f85ea2 100644 --- a/src/gallium/drivers/d3d12/d3d12_screen.cpp +++ b/src/gallium/drivers/d3d12/d3d12_screen.cpp @@ -773,6 +773,7 @@ d3d12_flush_frontbuffer(struct pipe_screen * pscreen, if (SUCCEEDED(screen->cmdqueue->QueryInterface(IID_PPV_ARGS(&sharing_contract)))) { ID3D12Resource *d3d12_res = d3d12_resource_resource(res); sharing_contract->Present(d3d12_res, 0, WindowFromDC((HDC)winsys_drawable_handle)); + sharing_contract->Release(); } #endif