mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 15:09:20 +02:00
* Fix memleak when using packages
git-svn-id: trunk@48082 -
This commit is contained in:
parent
de36d6c049
commit
7adcd2a8a2
@ -3142,9 +3142,12 @@ 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;
|
||||||
|
|
||||||
function TPasParser.GetLastSection: TPasSection;
|
function TPasParser.GetLastSection: TPasSection;
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user