Browse Source

* Fix bug #29576

git-svn-id: trunk@33044 -
michael 10 năm trước cách đây
mục cha
commit
bd49674975

+ 2 - 0
packages/fcl-registry/src/xregreg.inc

@@ -55,6 +55,8 @@ class procedure TXMLRegistryInstance.FreeXMLRegistryCache;
 
 
 var i: integer;
 var i: integer;
 begin
 begin
+  if not Assigned(XMLRegistryCache) then
+    exit;
   for i := 0 to XMLRegistryCache.Count - 1 do
   for i := 0 to XMLRegistryCache.Count - 1 do
     TXMLRegistryInstance(XMLRegistryCache[i]).Free;
     TXMLRegistryInstance(XMLRegistryCache[i]).Free;
   FreeAndNil(XMLRegistryCache);
   FreeAndNil(XMLRegistryCache);