2
0
Эх сурвалжийг харах

* Fix memleak when using packages

git-svn-id: trunk@48082 -
michael 4 жил өмнө
parent
commit
7adcd2a8a2

+ 3 - 0
packages/fcl-passrc/src/pparser.pp

@@ -3142,7 +3142,10 @@ begin
       FinishedModule;
       FinishedModule;
   finally
   finally
     if HasFinished then
     if HasFinished then
+      begin
+      Module.Release{$IFDEF CheckPasTreeRefCount}('TPasPackage.Modules'){$ENDIF};
       FCurModule:=nil; // clear module if there is an error or finished parsing
       FCurModule:=nil; // clear module if there is an error or finished parsing
+      end;
   end;
   end;
 end;
 end;