* use P/TTinyHeapMemBlockSize in RegisterTinyHeapBlock as well

git-svn-id: trunk@28248 -
This commit is contained in:
nickysn 2014-07-22 12:51:20 +00:00
parent 6f8a329b4c
commit 9a569b9e57

View File

@ -260,8 +260,8 @@
end;
if (ASize and 1) <> 0 then
Dec(ASize);
pptruint(AAddress)^ := ASize - SizeOf(ptruint);
FreeMem(pptruint(AAddress) + 1, ASize - SizeOf(ptruint));
PTinyHeapMemBlockSize(AAddress)^ := ASize - SizeOf(TTinyHeapMemBlockSize);
FreeMem(PTinyHeapMemBlockSize(AAddress) + 1, ASize - SizeOf(TTinyHeapMemBlockSize));
end;
const