Browse Source

IDE: Report memory leaks in DEBUG build.

Jordan Russell 10 months ago
parent
commit
819a580442
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Projects/Compil32.dpr

+ 4 - 0
Projects/Compil32.dpr

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