mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 20:40:19 +02:00
FpDebug: Testcase, fix mem leak
This commit is contained in:
parent
712b3e161d
commit
ddd2194c61
@ -3857,6 +3857,7 @@ begin
|
||||
|
||||
AssertTrue('Start debugger', Debugger.StartDebugger(AppDir, ExeName));
|
||||
|
||||
AnExpressionScope := nil;
|
||||
try
|
||||
BrkPrg := Debugger.SetBreakPoint(Src, 'Prg');
|
||||
AssertDebuggerNotInErrorState;
|
||||
@ -3922,12 +3923,12 @@ begin
|
||||
|
||||
APasExpr.Free;
|
||||
|
||||
|
||||
|
||||
end;
|
||||
|
||||
|
||||
finally
|
||||
AnExpressionScope.ReleaseReference;
|
||||
|
||||
Debugger.RunToNextPause(dcStop);
|
||||
Debugger.ClearDebuggerMonitors;
|
||||
Debugger.FreeDebugger;
|
||||
|
Loading…
Reference in New Issue
Block a user