mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 13:59:35 +01:00
lcl: in TDBLookup remove unnecessary initialization and use destroy for objects created unconditionally
git-svn-id: trunk@30330 -
This commit is contained in:
parent
3cbd34d275
commit
574d3f7e6c
@ -72,16 +72,16 @@ begin
|
||||
FListLink.Control := Self;
|
||||
FListLink.OnActiveChange := @ActiveChange;
|
||||
FListLink.OnEditingChange:=@EditingChange;
|
||||
FHasLookUpField:= False;
|
||||
FListLinkTmpSetActive := False;
|
||||
FLookupCache := False;
|
||||
//FHasLookUpField:= False;
|
||||
//FListLinkTmpSetActive := False;
|
||||
//FLookupCache := False;
|
||||
end;
|
||||
|
||||
destructor TDBLookup.Destroy;
|
||||
begin
|
||||
FDataFields.Free;
|
||||
FKeyFields.Free;
|
||||
FListLink.Free;
|
||||
FDataFields.Destroy;
|
||||
FKeyFields.Destroy;
|
||||
FListLink.Destroy;
|
||||
FLookupList.Free;
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user