From dbaef0d2db8101c8ba09505642426326de8f548f Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 21 Jun 2024 13:15:03 -0400 Subject: [PATCH] fix: dispose the hglobal if unused --- Util/Support.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Util/Support.cs b/Util/Support.cs index e26185b..2cd746d 100644 --- a/Util/Support.cs +++ b/Util/Support.cs @@ -110,7 +110,9 @@ internal void CopyDalamudLog() { Type = NotificationType.Info, Content = "dalamud.log file copied to clipboard.", }); + } else { + hGlobal.Dispose(); } } } -} \ No newline at end of file +}