mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 09:39:16 +02: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