mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 15:36:03 +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);
|
TDOMElement(Node).RemoveAttribute(NodeName);
|
||||||
FModified := True;
|
FModified := True;
|
||||||
end;
|
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
|
and (Node.ParentNode.ParentNode<>nil) do begin
|
||||||
if (Node is TDOMElement) and (not TDOMElement(Node).IsEmpty) then break;
|
if (Node is TDOMElement) and (not TDOMElement(Node).IsEmpty) then break;
|
||||||
ParentNode:=Node.ParentNode;
|
ParentNode:=Node.ParentNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user