mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-24 08:52:21 +00:00
Fix shared string memory leak.
This commit is contained in:
parent
6c57221807
commit
74e6df96d4
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ namespace Hedgehog::Base
|
|||
decrementedValue = ByteSwap(ByteSwap(originalValue) - 1);
|
||||
} while (InterlockedCompareExchange(reinterpret_cast<LONG*>(&RefCountAndLength), decrementedValue, originalValue) != originalValue);
|
||||
|
||||
if (RefCountAndLength == 0)
|
||||
if ((decrementedValue & 0xFFFF0000) == 0)
|
||||
__HH_FREE(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue