浏览代码

IDE: Report memory leaks in DEBUG build.

Jordan Russell 10 月之前
父节点
当前提交
819a580442
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Projects/Compil32.dpr

+ 4 - 0
Projects/Compil32.dpr

@@ -200,6 +200,10 @@ begin
 end;
 end;
 
 
 begin
 begin
+  {$IFDEF DEBUG}
+  ReportMemoryLeaksOnShutdown := True;
+  {$ENDIF}
+
   InitialCurDir := GetCurrentDir;
   InitialCurDir := GetCurrentDir;
   if not SetCurrentDir(PathExtractDir(NewParamStr(0))) then
   if not SetCurrentDir(PathExtractDir(NewParamStr(0))) then
     SetCurrentDir(GetSystemDir);
     SetCurrentDir(GetSystemDir);