mirror of
https://github.com/DarthAffe/ScreenCapture.NET.git
synced 2025-12-12 13:28:35 +00:00
Fixed a memory leak after disposing the DX11ScreenCapture
This commit is contained in:
parent
762e2fefe0
commit
0aea8c675b
@ -438,7 +438,13 @@ public sealed class DX11ScreenCapture : AbstractScreenCapture<ColorBGRA>
|
|||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
|
|
||||||
lock (_captureLock)
|
lock (_captureLock)
|
||||||
|
{
|
||||||
|
foreach (ZoneTextures textures in _textures.Values)
|
||||||
|
textures.Dispose();
|
||||||
|
_textures.Clear();
|
||||||
|
|
||||||
DisposeDX();
|
DisposeDX();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DisposeDX()
|
private void DisposeDX()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user