mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-31 00:10:26 -06:00
Fix shared string memory leak.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user