From 5261bb27778d3b4e42f061093d29cf10850ee65a Mon Sep 17 00:00:00 2001 From: Raymond Date: Sun, 17 Oct 2021 20:03:06 -0400 Subject: [PATCH] Solve APPCRASH issue --- Dalamud/Hooking/Hook.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dalamud/Hooking/Hook.cs b/Dalamud/Hooking/Hook.cs index 0daa9c73c..25471a23f 100644 --- a/Dalamud/Hooking/Hook.cs +++ b/Dalamud/Hooking/Hook.cs @@ -166,7 +166,9 @@ namespace Dalamud.Hooking if (this.isCoreHook) { this.Disable(); - this.coreHookImpl.Dispose(); + // Disposing CoreHook causes an APPCRASH on game exit. + // We already overwrite the original hook code, so there shouldn't be any real risk with not disposing here. + // this.coreHookImpl.Dispose(); } else {