mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Print warning if dispose fails
This commit is contained in:
parent
873d0c6305
commit
29f4797b4c
1 changed files with 9 additions and 1 deletions
|
|
@ -66,7 +66,15 @@ namespace Dalamud.Game.Gui.PartyFinder
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
this.receiveListingHook.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)
|
private void HandleReceiveListingDetour(IntPtr managerPtr, IntPtr data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue