mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 16:09:17 +02:00
Reset class fields FList and FHashList to nil after Destroy call
git-svn-id: trunk@34078 -
This commit is contained in:
parent
e68b8467b6
commit
b3063b7db2
@ -1027,6 +1027,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
Clear;
|
Clear;
|
||||||
FList.Destroy;
|
FList.Destroy;
|
||||||
|
FList:=nil;
|
||||||
end;
|
end;
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
@ -1842,6 +1843,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
Clear;
|
Clear;
|
||||||
FHashList.Destroy;
|
FHashList.Destroy;
|
||||||
|
FHashList:=nil;
|
||||||
end;
|
end;
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user