FpDebugger (pure): Solved AV when the debuggee already has been stopped when a breakpoint is freed.

git-svn-id: trunk@45935 -
This commit is contained in:
joost 2014-07-20 17:50:19 +00:00
parent 70300be121
commit fef936b68e

View File

@ -573,7 +573,7 @@ end;
destructor TFPBreakpoint.Destroy;
begin
if (Debugger.State = dsRun) and assigned(FInternalBreakpoint) then
if assigned(Debugger) and (Debugger.State = dsRun) and assigned(FInternalBreakpoint) then
begin
TFPBreakpoints(Collection).AddBreakpointToDelayedRemoveList(FInternalBreakpoint);
FInternalBreakpoint:=nil;