From 27c5b0e9b7c33b1f4fc4ab833b1117c71eec781a Mon Sep 17 00:00:00 2001 From: James Groom Date: Wed, 4 Oct 2023 05:21:22 +1000 Subject: [PATCH] Also clear `GuiApi`'s image cache when restarting --- src/BizHawk.Client.Common/Api/Classes/GuiApi.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BizHawk.Client.Common/Api/Classes/GuiApi.cs b/src/BizHawk.Client.Common/Api/Classes/GuiApi.cs index 3d1357b4ef..272e38214c 100644 --- a/src/BizHawk.Client.Common/Api/Classes/GuiApi.cs +++ b/src/BizHawk.Client.Common/Api/Classes/GuiApi.cs @@ -642,6 +642,7 @@ namespace BizHawk.Client.Common UnlockSurface(DisplaySurfaceID.Client); foreach (var brush in _solidBrushes.Values) brush.Dispose(); foreach (var brush in _pens.Values) brush.Dispose(); + ClearImageCache(); } } }