mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-09 15:09:54 +01:00
FpDebug: Fixed passing dangling pointer. (Currently not used by LazDebuggerFp when doing deExitProcess)
This commit is contained in:
parent
4f94496f20
commit
7534833eb6
@ -1713,7 +1713,9 @@ begin
|
||||
if FPDEvent=deExitProcess then begin
|
||||
FreeAndNil(FCommand);
|
||||
if assigned(FOnThreadProcessLoopCycleEvent) then begin
|
||||
CurCmd := nil;
|
||||
FOnThreadProcessLoopCycleEvent(AExit, FPDEvent, CurCmd, IsFinished);
|
||||
FreeAndNil(CurCmd);
|
||||
FPDEvent := deExitProcess;
|
||||
end;
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user