mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 07:46:00 +02:00
* Removed some memory leaks
git-svn-id: trunk@20863 -
This commit is contained in:
parent
b1f7f84b41
commit
b0077a1155
@ -1366,7 +1366,9 @@ end;
|
|||||||
destructor TPasSetType.Destroy;
|
destructor TPasSetType.Destroy;
|
||||||
begin
|
begin
|
||||||
if Assigned(EnumType) then
|
if Assigned(EnumType) then
|
||||||
|
begin
|
||||||
EnumType.Release;
|
EnumType.Release;
|
||||||
|
end;
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -2814,6 +2816,7 @@ destructor TParamsExpr.Destroy;
|
|||||||
var
|
var
|
||||||
i : Integer;
|
i : Integer;
|
||||||
begin
|
begin
|
||||||
|
FreeAndNil(Value);
|
||||||
for i:=0 to length(Params)-1 do Params[i].Free;
|
for i:=0 to length(Params)-1 do Params[i].Free;
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user