Skip to content

Commit

Permalink
IDE: Report memory leaks in DEBUG build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanrussell authored Nov 20, 2024
1 parent d9c6361 commit 819a580
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Projects/Compil32.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ begin
end;

begin
{$IFDEF DEBUG}
ReportMemoryLeaksOnShutdown := True;
{$ENDIF}

InitialCurDir := GetCurrentDir;
if not SetCurrentDir(PathExtractDir(NewParamStr(0))) then
SetCurrentDir(GetSystemDir);
Expand Down

0 comments on commit 819a580

Please sign in to comment.