mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Fix minor memory leak for suspended cached dataset holding collations.
This commit is contained in:
@ -8829,8 +8829,10 @@ end;
|
||||
function TMainform.GetCollations(Items: TWideStrings = nil): TDataset;
|
||||
begin
|
||||
// Return cached collation list, used in several places, e.g. table editor
|
||||
if (dsCollations = nil) or (dsCollations.State = dsInactive) then
|
||||
if (dsCollations = nil) or (dsCollations.State = dsInactive) then begin
|
||||
FreeAndNil(dsCollations);
|
||||
dsCollations := GetResults('SHOW COLLATION', True);
|
||||
end;
|
||||
if Assigned(dsCollations) then begin
|
||||
dsCollations.First;
|
||||
if Assigned(Items) then begin
|
||||
|
Reference in New Issue
Block a user