Browse Source

* Patch from Maciej Izak to allow loading multiple times

git-svn-id: trunk@42343 -
michael 6 years ago
parent
commit
2425b97462
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/fcl-base/src/fileinfo.pp

+ 4 - 1
packages/fcl-base/src/fileinfo.pp

@@ -172,7 +172,10 @@ procedure TVersionInfo.FreeResources;
 
 
 begin
 begin
   if Assigned(FResources) then
   if Assigned(FResources) then
-    FreeAndNil(FResources)
+    begin
+      FreeAndNil(FResources);
+      FVersionInfo := nil;
+    end
   else
   else
     FreeAndNil(FVersionInfo);
     FreeAndNil(FVersionInfo);
 end;
 end;