From c2c7613b473ade705b91dfeeac1a7796c5610f42 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 4 Jul 2022 17:04:09 +0200 Subject: [PATCH] Fix memory leak in ID3D12DescriptorHandleAllocator --- .../Graphics/Commands/Interop/ID3D12DescriptorHandleAllocator.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ComputeSharp/Graphics/Commands/Interop/ID3D12DescriptorHandleAllocator.cs b/src/ComputeSharp/Graphics/Commands/Interop/ID3D12DescriptorHandleAllocator.cs index 5591aba3..02989353 100644 --- a/src/ComputeSharp/Graphics/Commands/Interop/ID3D12DescriptorHandleAllocator.cs +++ b/src/ComputeSharp/Graphics/Commands/Interop/ID3D12DescriptorHandleAllocator.cs @@ -138,5 +138,6 @@ internal unsafe struct ID3D12DescriptorHandleAllocator : IDisposable public void Dispose() { this.d3D12DescriptorHeap.Dispose(); + this.d3D12DescriptorHeapNonShaderVisible.Dispose(); } }