mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 14:20:02 +02:00
FpDebug: Fixed passing dangling pointer. (Currently not used by LazDebuggerFp when doing deExitProcess)
(cherry picked from commit 7534833eb6
)
This commit is contained in:
parent
2ce918ee2e
commit
9979693585
@ -1691,7 +1691,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