DBG: fix deleting breakpoint that have a group

git-svn-id: trunk@30733 -
This commit is contained in:
martin 2011-05-14 20:00:20 +00:00
parent e1a1402c12
commit a60b1bab59

View File

@ -4345,6 +4345,8 @@ begin
end;
destructor TIDEBreakPoint.Destroy;
var
Grp: TIDEBreakPointGroup;
begin
if FMaster <> nil
then begin
@ -4355,8 +4357,10 @@ begin
if (TIDEBreakPoints(Collection) <> nil)
then TIDEBreakPoints(Collection).NotifyRemove(Self);
if FGroup <> nil
then FGroup.Remove(Self);
Grp := FGroup;
FGroup := nil;
if Grp <> nil
then Grp.Remove(Self);
ClearAllGroupLists;