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:
Martin 2025-01-09 11:44:15 +01:00
parent 772bc3236b
commit f54758267e

View File

@ -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;