mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 07:37:02 +02:00
fixed mem leak
git-svn-id: trunk@9681 -
This commit is contained in:
parent
a7e155bb65
commit
e22f30c84d
@ -334,7 +334,7 @@ begin
|
||||
TDOMElement(Node).RemoveAttribute(NodeName);
|
||||
FModified := True;
|
||||
end;
|
||||
while (Node.ChildNodes.Count=0) and (Node.ParentNode<>nil)
|
||||
while (Node.FirstChild=nil) and (Node.ParentNode<>nil)
|
||||
and (Node.ParentNode.ParentNode<>nil) do begin
|
||||
if (Node is TDOMElement) and (not TDOMElement(Node).IsEmpty) then break;
|
||||
ParentNode:=Node.ParentNode;
|
||||
|
Loading…
Reference in New Issue
Block a user