feat: dispose scratches

This commit is contained in:
goat 2021-05-05 00:30:38 +02:00
parent 39b281f334
commit 5d1537b3ed
No known key found for this signature in database
GPG key ID: F18F057873895461
2 changed files with 7 additions and 1 deletions

View file

@ -390,6 +390,7 @@ namespace Dalamud.Interface
/// </summary>
public void Dispose()
{
this.scratchpadWindow.Dispose();
this.windowSystem.RemoveAllWindows();
this.logWindow?.Dispose();

View file

@ -13,7 +13,7 @@ using Serilog;
namespace Dalamud.Interface.Scratchpad
{
class ScratchpadWindow : Window
class ScratchpadWindow : Window, IDisposable
{
private readonly Dalamud dalamud;
@ -166,5 +166,10 @@ namespace Dalamud.Interface.Scratchpad
ImGui.EndTabBar();
}
}
public void Dispose()
{
this.Execution.DisposeAllScratches();
}
}
}