mirror of
https://github.com/DarthAffe/ScreenCapture.NET.git
synced 2025-12-12 13:28:35 +00:00
Merge pull request #31 from DarthAffe/MemoryLeak
Fixed a memory leak after disposing the DX11ScreenCapture
This commit is contained in:
commit
aa643f1fe3
@ -438,7 +438,13 @@ 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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user