Skip to content

Commit

Permalink
IDE: Report memory leaks in DEBUG build.
Browse files Browse the repository at this point in the history
jordanrussell authored Nov 20, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -200,6 +200,10 @@ begin
end;

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

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

0 comments on commit 819a580

Please sign in to comment.