Skip to content

Commit 430b43a

Browse files
committed
Fix the hot key leak by actually setting IntPtr to zero when detaching... Captain Oblivious to the rescue!
1 parent 71be91c commit 430b43a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RetailCoder.VBE/Common/Hotkeys/Hotkey.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ public void Detach()
8080
{
8181
Logger.Warn($"Error calling DeleteGlobalAtom; the error was {lastError}, the id {HotkeyInfo.HookId} and the type of the associated command {Command.GetType()}.");
8282
}
83+
84+
HotkeyInfo = new HotkeyInfo(IntPtr.Zero, Combo);
8385
ClearCommandShortcutText();
8486
}
8587

0 commit comments

Comments
 (0)