properly dispose everything when disposing the imgui resource cache

This commit is contained in:
CasualPokePlayer 2024-05-25 16:25:44 -07:00
parent 3716a65638
commit efee5f0cb3
1 changed files with 3 additions and 2 deletions

View File

@ -76,9 +76,10 @@ namespace BizHawk.Bizware.Graphics
public void Dispose()
{
foreach (var cachedTexture in TextureCache.Values)
foreach (var cache in TextureCache)
{
cachedTexture.Dispose();
cache.Key.Dispose();
cache.Value.Dispose();
}
foreach (var cachedBrush in BrushCache.Values)