Browse Source

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

git-svn-id: trunk@34399 -
pierre 9 years ago
parent
commit
cb5f540eb9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/inc/heaptrc.pp

+ 1 - 1
rtl/inc/heaptrc.pp

@@ -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