mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 09:00:30 +02:00
* Some memory leak fixes from Vincent Snijders
git-svn-id: trunk@16306 -
This commit is contained in:
parent
d1264eeb3a
commit
121cef51d2
@ -1440,6 +1440,8 @@ begin
|
||||
(e.g. in Constants) }
|
||||
if Assigned(VarType) then
|
||||
VarType.Release;
|
||||
if Assigned(Expr) then
|
||||
Expr.Release;
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
|
@ -3093,7 +3093,6 @@ begin
|
||||
begin
|
||||
Variant := TPasVariant(CreateElement(TPasVariant, '', Parent));
|
||||
Parent.Variants.Add(Variant);
|
||||
Variant.Values := TStringList.Create;
|
||||
while True do
|
||||
begin
|
||||
Variant.Values.Add(ParseExpression(Parent));
|
||||
|
Loading…
Reference in New Issue
Block a user