Reset class fields FList and FHashList to nil after Destroy call

git-svn-id: trunk@34078 -
This commit is contained in:
pierre 2016-07-06 06:14:37 +00:00
parent e68b8467b6
commit b3063b7db2

View File

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