diff --git a/Dalamud/Game/Gui/PartyFinder/PartyFinderGui.cs b/Dalamud/Game/Gui/PartyFinder/PartyFinderGui.cs index e61cbaf84..6d2a7818d 100644 --- a/Dalamud/Game/Gui/PartyFinder/PartyFinderGui.cs +++ b/Dalamud/Game/Gui/PartyFinder/PartyFinderGui.cs @@ -66,7 +66,15 @@ namespace Dalamud.Game.Gui.PartyFinder public void Dispose() { this.receiveListingHook.Dispose(); - Marshal.FreeHGlobal(this.memory); + + try + { + Marshal.FreeHGlobal(this.memory); + } + catch (BadImageFormatException) + { + Log.Warning("Could not free PartyFinderGui memory."); + } } private void HandleReceiveListingDetour(IntPtr managerPtr, IntPtr data)