Browse Source

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

git-svn-id: trunk@12774 -
joost 16 years ago
parent
commit
e4495fc350
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packages/fcl-db/src/base/db.pas

+ 4 - 4
packages/fcl-db/src/base/db.pas

@@ -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;
-  FList.Free;
+  Clear;
+  FList.Destroy;
   inherited Destroy;
   inherited Destroy;
 end;
 end;