Browse Source

pas2js: fixed mem leak file cache

mattias 3 years ago
parent
commit
2970d98550
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/pastojs/src/pas2jsfilecache.pp

+ 1 - 0
packages/pastojs/src/pas2jsfilecache.pp

@@ -1509,6 +1509,7 @@ begin
   FFiles.FreeItems;
   FFiles.FreeItems;
   FreeAndNil(FDirectoryCache);
   FreeAndNil(FDirectoryCache);
   FreeAndNil(FFiles);
   FreeAndNil(FFiles);
+  FreeAndNil(FResourcePaths);
   FreeAndNil(FIncludePaths);
   FreeAndNil(FIncludePaths);
   FreeAndNil(FForeignUnitPaths);
   FreeAndNil(FForeignUnitPaths);
   FreeAndNil(FUnitPaths);
   FreeAndNil(FUnitPaths);