Browse Source

* Fixed mem-leaks

git-svn-id: trunk@35754 -
joost 8 years ago
parent
commit
cb402adf32

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

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

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

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