mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 23:21:57 +02:00
* Correctly free objects when destroying stringlist instance
git-svn-id: trunk@20265 -
This commit is contained in:
parent
b058593b53
commit
723482c814
@ -1133,10 +1133,7 @@ Var I : Longint;
|
||||
begin
|
||||
FOnChange:=Nil;
|
||||
FOnChanging:=Nil;
|
||||
// This will force a dereference. Can be done better...
|
||||
For I:=0 to FCount-1 do
|
||||
FList^[I].FString:='';
|
||||
FCount:=0;
|
||||
Clear;
|
||||
SetCapacity(0);
|
||||
Inherited destroy;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user