mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 07:31:20 +02:00
Some fixes from Luiz Americo, fixes destroy
This commit is contained in:
parent
30873fc9a8
commit
7452bd955c
@ -256,11 +256,11 @@ end;
|
||||
|
||||
destructor TSqliteDataset.Destroy;
|
||||
begin
|
||||
inherited Destroy;
|
||||
FUpdatedItems.Destroy;
|
||||
FAddedItems.Destroy;
|
||||
FDeletedItems.Destroy;
|
||||
FOrphanItems.Destroy;
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
procedure TSqliteDataset.DisposeLinkedList;
|
||||
@ -560,6 +560,7 @@ var
|
||||
TempStr:String;
|
||||
ActiveItem:PDataRecord;
|
||||
begin
|
||||
if FRecordCount = 0 then exit; //avoid exception in win32 + lcl + TDbEdit
|
||||
ActiveItem:=PPDataRecord(ActiveBuffer)^;
|
||||
if (ActiveItem <> FCacheItem) and (FUpdatedItems.IndexOf(ActiveItem) = -1) and (FAddedItems.IndexOf(ActiveItem) = -1) then
|
||||
FUpdatedItems.Add(ActiveItem);
|
||||
|
Loading…
Reference in New Issue
Block a user