Browse Source

* Fix bug #29576

git-svn-id: trunk@33044 -
michael 9 years ago
parent
commit
bd49674975
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-registry/src/xregreg.inc

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

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