mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 13:09:20 +02:00
lazutils: TAvgLvlTree: made FreeAndDelete virtual safe
git-svn-id: trunk@54537 -
This commit is contained in:
parent
efd6a6efc5
commit
7fa04aed29
@ -666,7 +666,7 @@ begin
|
|||||||
OldParent:=ANode;
|
OldParent:=ANode;
|
||||||
while OldParent.Parent<>nil do OldParent:=OldParent.Parent;
|
while OldParent.Parent<>nil do OldParent:=OldParent.Parent;
|
||||||
if OldParent<>Root then
|
if OldParent<>Root then
|
||||||
raise Exception,Create('TAVLTree.Delete'); // not my node
|
raise Exception.Create('TAVLTree.Delete'); // not my node
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
if (ANode.Left<>nil) and (ANode.Right<>nil) then begin
|
if (ANode.Left<>nil) and (ANode.Right<>nil) then begin
|
||||||
// ANode has both: Left and Right
|
// ANode has both: Left and Right
|
||||||
|
Loading…
Reference in New Issue
Block a user