Fixed a memory leak after disposing the DX11ScreenCapture

This commit is contained in:
Darth Affe 2024-02-19 19:46:08 +01:00
parent 762e2fefe0
commit 0aea8c675b

View File

@ -438,8 +438,14 @@ public sealed class DX11ScreenCapture : AbstractScreenCapture<ColorBGRA>
base.Dispose(disposing);
lock (_captureLock)
{
foreach (ZoneTextures textures in _textures.Values)
textures.Dispose();
_textures.Clear();
DisposeDX();
}
}
private void DisposeDX()
{