mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 03:30:15 +02:00
Call custom MemoryManager.DoneThread before FinalizeHeap.
This commit is contained in:
parent
9a7a8f0d5c
commit
37a7474471
@ -79,13 +79,11 @@ Var
|
||||
if assigned(widestringmanager.ThreadFiniProc) then
|
||||
widestringmanager.ThreadFiniProc;
|
||||
{$endif FPC_HAS_FEATURE_WIDESTRINGS}
|
||||
{$ifndef HAS_MEMORYMANAGER}
|
||||
{$ifndef FPC_NO_DEFAULT_HEAP}
|
||||
FinalizeHeap;
|
||||
{$endif ndef FPC_NO_DEFAULT_HEAP}
|
||||
{$endif HAS_MEMORYMANAGER}
|
||||
if MemoryManager.DoneThread <> nil then
|
||||
MemoryManager.DoneThread();
|
||||
{$if not defined(HAS_MEMORYMANAGER) and not defined(FPC_NO_DEFAULT_HEAP)}
|
||||
FinalizeHeap;
|
||||
{$endif ndef HAS_MEMORYMANAGER and ndef FPC_NO_DEFAULT_HEAP}
|
||||
{$ifdef FPC_HAS_FEATURE_CONSOLEIO}
|
||||
{ Open all stdio fds again }
|
||||
SysFlushStdio;
|
||||
|
Loading…
Reference in New Issue
Block a user