Merge pull request #514 from daemitus/pfGui

This commit is contained in:
goaaats 2021-08-28 16:52:42 +02:00 committed by GitHub
commit 23a40f1794
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,8 +66,16 @@ namespace Dalamud.Game.Gui.PartyFinder
public void Dispose()
{
this.receiveListingHook.Dispose();
try
{
Marshal.FreeHGlobal(this.memory);
}
catch (BadImageFormatException)
{
Log.Warning("Could not free PartyFinderGui memory.");
}
}
private void HandleReceiveListingDetour(IntPtr managerPtr, IntPtr data)
{