Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression in FreeListRef where no memory was allocated for the r…
…ef count. Fixes #1432. Commit 6be5471 switched FreeListRef to use FreeListObjectAlloc underneath, but didn't accound for the extra memory that is needed to store the reference count directly after the object payload. The possible implications of this are memory corruption and memory leaks, although with the predefined allocator setip, this will only happen to types with a POT size or slightly less. This commit adds an "EXTRA" template type parameter to FreeListObjectAlloc that is used to determine the additional amount of allocated memory, which is set to "int" in the case of FreeListRef.
- Loading branch information