Ensure surfaces are unlocked when disposing of GuiApi
actually properly fixes #2571 for real this time
This commit is contained in:
parent
bba4286123
commit
a0ebb2f551
|
@ -597,6 +597,8 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
|
UnlockSurface(DisplaySurfaceID.EmuCore);
|
||||||
|
UnlockSurface(DisplaySurfaceID.Client);
|
||||||
foreach (var brush in _solidBrushes.Values) brush.Dispose();
|
foreach (var brush in _solidBrushes.Values) brush.Dispose();
|
||||||
foreach (var brush in _pens.Values) brush.Dispose();
|
foreach (var brush in _pens.Values) brush.Dispose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue