Fix typo in last commit: to disable TraceManager, call SetMemoryManager with saved PrevMemoryManager variable

git-svn-id: trunk@34399 -
This commit is contained in:
pierre 2016-08-30 15:51:56 +00:00
parent 5dc55b362d
commit cb5f540eb9

View File

@ -1478,7 +1478,7 @@ begin
exit;
end;
{ Disable heaptrc memory manager to avoid problems }
GetMemoryManager(PrevMemoryManager);
SetMemoryManager(PrevMemoryManager);
move_heap_info(@orphaned_info, @heap_info);
dumpheap;
if heap_info.error_in_heap and (exitcode=0) then