From 819a5804422c5c54cef0f3e3115aaa2b685d1b58 Mon Sep 17 00:00:00 2001 From: Jordan Russell Date: Wed, 20 Nov 2024 03:15:16 -0600 Subject: [PATCH] IDE: Report memory leaks in DEBUG build. --- Projects/Compil32.dpr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Projects/Compil32.dpr b/Projects/Compil32.dpr index 0c427080a..512a4b876 100644 --- a/Projects/Compil32.dpr +++ b/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);