mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-01 21:33:40 +01:00
Fix potential crash in decref.
This commit is contained in:
parent
4f2a14c9ee
commit
96e6ff0fbf
2 changed files with 14 additions and 6 deletions
|
|
@ -212,8 +212,16 @@ public unsafe class ResourceLoader : IDisposable
|
|||
if (handle->RefCount != 0)
|
||||
return;
|
||||
|
||||
Penumbra.Log.Error(
|
||||
$"[ResourceLoader] Caught decrease of Reference Counter for {handle->FileName()} at 0x{(ulong)handle} below 0.");
|
||||
try
|
||||
{
|
||||
Penumbra.Log.Error(
|
||||
$"[ResourceLoader] Caught decrease of Reference Counter for {handle->FileName()} at 0x{(ulong)handle} below 0.");
|
||||
}
|
||||
catch
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
|
||||
returnValue = 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue