* Patch from Luiz Americo to replace TList by TFPList in TLookupList, bug #13225

git-svn-id: trunk@12774 -
This commit is contained in:
joost 2009-02-22 17:36:23 +00:00
parent ee123bbaf9
commit e4495fc350

View File

@ -245,7 +245,7 @@ type
TLookupList = class(TObject) TLookupList = class(TObject)
private private
FList: TList; FList: TFPList;
public public
constructor Create; constructor Create;
destructor Destroy; override; destructor Destroy; override;
@ -2295,14 +2295,14 @@ end;
constructor TLookupList.Create; constructor TLookupList.Create;
begin begin
FList := TList.Create; FList := TFPList.Create;
end; end;
destructor TLookupList.Destroy; destructor TLookupList.Destroy;
begin begin
if FList <> nil then Clear; Clear;
FList.Free; FList.Destroy;
inherited Destroy; inherited Destroy;
end; end;