Explorar o código

* Patch from Inoussa to fix AV in certain cases

git-svn-id: trunk@17184 -
michael %!s(int64=14) %!d(string=hai) anos
pai
achega
baf0ed35f3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-xml/src/dom.pp

+ 1 - 1
packages/fcl-xml/src/dom.pp

@@ -2484,7 +2484,7 @@ end;
 }
 procedure TDOMDocument.NodeListDestroyed(aList: TDOMNodeList);
 begin
-  if not (nfDestroying in FFlags) then
+  if (not (nfDestroying in FFlags)) and (FNodeLists <> nil) then
     FNodeLists.RemoveData(aList);
 end;