Changeset 15 for trunk/UDatabase.pas


Ignore:
Timestamp:
Mar 22, 2018, 8:31:19 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Update Common and CollTranslator packages to fix build under Lazarus 1.8.
  • Fixed: Some memory leaks.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UDatabase.pas

    r14 r15  
    6868    property DataType: TDataType read FDataType write SetDataType;
    6969    constructor Create;
     70    destructor Destroy; override;
    7071  end;
    7172
     
    484485begin
    485486  TypeRelated := TFieldString.Create;
     487end;
     488
     489destructor TField.Destroy;
     490begin
     491  DataType := nil;
     492  inherited Destroy;
    486493end;
    487494
     
    521528var
    522529  DbRows: TDbRows;
    523   I: Integer;
    524   F: Integer;
    525   NewRecord: TRecord;
    526   NewValue: TValue;
    527530begin
    528531  Records.Clear;
     
    581584destructor TDatabase.Destroy;
    582585begin
     586  Engine := nil;
    583587  Tables.Free;
    584588  inherited Destroy;
Note: See TracChangeset for help on using the changeset viewer.