Browse Source

fcl-passrc: fixed mem leak

git-svn-id: trunk@48138 -
(cherry picked from commit 2833bf671000e14079c2e2c2fe2da52016661e45)
Mattias Gaertner 4 years ago
parent
commit
8e4e76c9c2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/fcl-passrc/src/pparser.pp

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

@@ -3142,10 +3142,10 @@ begin
       FinishedModule;
       FinishedModule;
   finally
   finally
     if HasFinished then
     if HasFinished then
-      begin
-      Module.Release{$IFDEF CheckPasTreeRefCount}('TPasPackage.Modules'){$ENDIF};
+      //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;
 end;