mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 20:31:41 +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);
|
decrementedValue = ByteSwap(ByteSwap(originalValue) - 1);
|
||||||
} while (InterlockedCompareExchange(reinterpret_cast<LONG*>(&RefCountAndLength), decrementedValue, originalValue) != originalValue);
|
} while (InterlockedCompareExchange(reinterpret_cast<LONG*>(&RefCountAndLength), decrementedValue, originalValue) != originalValue);
|
||||||
|
|
||||||
if (RefCountAndLength == 0)
|
if ((decrementedValue & 0xFFFF0000) == 0)
|
||||||
__HH_FREE(this);
|
__HH_FREE(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue