* fixed bug in SysTinyGetMem that caused heap corruption if the free block that's being allocated is followed tightly by an already allocated block

git-svn-id: trunk@24520 -
This commit is contained in:
nickysn 2013-05-16 22:15:36 +00:00
parent 9312419ce8
commit f0ada1ccc5

View File

@ -71,6 +71,7 @@
pptruint(p)^ := size;
if RestSize > 0 then
InternalTinyFreeMem(pointer(ptruint(p)+AllocSize), RestSize);
end
else