diff --git a/WFInfo/Services/Screenshot/WindowsCaptureScreenshotService.cs b/WFInfo/Services/Screenshot/WindowsCaptureScreenshotService.cs index ae0d1342..1a21caec 100644 --- a/WFInfo/Services/Screenshot/WindowsCaptureScreenshotService.cs +++ b/WFInfo/Services/Screenshot/WindowsCaptureScreenshotService.cs @@ -86,6 +86,7 @@ public Task> CaptureScreenshot() else bitmap = CaptureSdr(sdrSpan, width, height, mapSource.RowPitch); _d3dDevice.ImmediateContext.UnmapSubresource(cpuTexture, 0); + cpuTexture.Dispose(); var result = new List { bitmap }; return Task.FromResult(result);