mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 00:58:04 +02:00
FpDebug: Do not free current DbgThread while still in use / Will be freed after next run/step. (Linux)
(cherry picked from commit d25d085dbb
)
This commit is contained in:
parent
772bc3236b
commit
f54758267e
@ -1926,7 +1926,8 @@ begin
|
||||
TDbgThread(ThreadToPause) := it.Current;
|
||||
if ThreadToPause.FHasExited then begin
|
||||
Process.RemoveThread(ThreadToPause.ID); // TODO: postpone ?
|
||||
ThreadToPause.Free;
|
||||
if ThreadToPause <> AThread then
|
||||
ThreadToPause.Free;
|
||||
end;
|
||||
it.Next;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user