* Some memory leak fixes from Vincent Snijders

git-svn-id: trunk@16306 -
This commit is contained in:
michael 2010-11-05 17:14:04 +00:00
parent d1264eeb3a
commit 121cef51d2
2 changed files with 9 additions and 8 deletions

View File

@ -1440,6 +1440,8 @@ begin
(e.g. in Constants) }
if Assigned(VarType) then
VarType.Release;
if Assigned(Expr) then
Expr.Release;
inherited Destroy;
end;

View File

@ -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));