mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 21:09:44 +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
@ -619,7 +619,7 @@ implementation
|
||||
move (b^, s[1],l*SizeOf(char));
|
||||
l:=length(Strings);
|
||||
setlength(Strings,l+1);
|
||||
Strings[l]:=S;
|
||||
Strings[l]:=S;
|
||||
inc (result);
|
||||
end;
|
||||
end;
|
||||
@ -1027,6 +1027,7 @@ begin
|
||||
begin
|
||||
Clear;
|
||||
FList.Destroy;
|
||||
FList:=nil;
|
||||
end;
|
||||
inherited Destroy;
|
||||
end;
|
||||
@ -1842,6 +1843,7 @@ begin
|
||||
begin
|
||||
Clear;
|
||||
FHashList.Destroy;
|
||||
FHashList:=nil;
|
||||
end;
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user