From db2a5285a99fd46271f4b518888dac146d3fd300 Mon Sep 17 00:00:00 2001 From: svenbarth Date: Fri, 23 Aug 2019 14:59:15 +0000 Subject: [PATCH] * fix for Mantis #35988: the internal heap uses directly the Sys* functions, not the memory manager git-svn-id: trunk@42774 - --- rtl/inc/heap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/inc/heap.inc b/rtl/inc/heap.inc index 62fd83e9f3..f41e4c8cfa 100644 --- a/rtl/inc/heap.inc +++ b/rtl/inc/heap.inc @@ -1530,7 +1530,7 @@ begin {$endif} if not SysTryResizeMem(p,size) then begin - oldsize:=MemoryManager.MemSize(p); + oldsize:=SysMemSize(p); { Grow with bigger steps to prevent the need for multiple getmem/freemem calls for fixed blocks. It might cost a bit of extra memory, but in most cases a reallocmem is done multiple times. } @@ -1549,7 +1549,7 @@ begin p2 := SysGetMem(newsize); if p2<>nil then Move(p^,p2^,minsize); - MemoryManager.FreeMem(p); + SysFreeMem(p); p := p2; {$ifdef DUMP_MEM_USAGE} end else begin