Fixed HEAP Corruption, LinearAllocator was able to allocate too much.
Merge branch 'LinearAllocator'