Browse Source

* Fixed mem-leaks

git-svn-id: trunk@35754 -
joost 8 years ago
parent
commit
cb402adf32
2 changed files with 2 additions and 1 deletions
  1. 1 0
      packages/fppkg/src/pkgoptions.pp
  2. 1 1
      packages/fppkg/src/pkguninstalledsrcsrepo.pp

+ 1 - 0
packages/fppkg/src/pkgoptions.pp

@@ -350,6 +350,7 @@ begin
             IncludeFile(FileDir+SR.Name);
           until FindNext(SR)<>0;
         end;
+      FindClose(SR);
     end
   else
     log(llWarning, SLogIncludeFileMaskDoesNotExist, [FileDir, AFileNameMask]);

+ 1 - 1
packages/fppkg/src/pkguninstalledsrcsrepo.pp

@@ -143,7 +143,7 @@ begin
           FindClose(SRF);
       until FindNext(SRD)<>0;
     end;
-  FindClose(SRF);
+  FindClose(SRD);
 
   Result:=true;
 end;