Skip to content

Commit

Permalink
Fix duplicate Form.Dispose implementation
Browse files Browse the repository at this point in the history
fixes 6d2d074
  • Loading branch information
YoshiRulz committed Nov 27, 2024
1 parent 6d2d074 commit a39689d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
13 changes: 0 additions & 13 deletions src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,11 @@ private string CanStart()

protected override void Dispose(bool disposing)
{
if (_isBotting) RestoreConfigFlags(); // disposed while running? least we can do is not clobber config
if (disposing)
{
components?.Dispose();
if (_isBotting) RestoreConfigFlags(); // disposed while running? least we can do is not clobber config
}
base.Dispose(disposing: disposing);
}

Expand Down

0 comments on commit a39689d

Please sign in to comment.