浏览代码

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

git-svn-id: trunk@34399 -
pierre 9 年之前
父节点
当前提交
cb5f540eb9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/inc/heaptrc.pp

+ 1 - 1
rtl/inc/heaptrc.pp

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