lazutils: TAvgLvlTree: made FreeAndDelete virtual safe

git-svn-id: trunk@54537 -
This commit is contained in:
mattias 2017-04-06 09:27:12 +00:00
parent efd6a6efc5
commit 7fa04aed29

View File

@ -666,7 +666,7 @@ begin
OldParent:=ANode;
while OldParent.Parent<>nil do OldParent:=OldParent.Parent;
if OldParent<>Root then
raise Exception,Create('TAVLTree.Delete'); // not my node
raise Exception.Create('TAVLTree.Delete'); // not my node
{$ENDIF}
if (ANode.Left<>nil) and (ANode.Right<>nil) then begin
// ANode has both: Left and Right