mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix AV on application exit while datagrid has pending changes. Fixes issue #1780.
This commit is contained in:
@@ -1135,13 +1135,13 @@ begin
|
||||
FreeAndNil(CreateDatabaseForm);
|
||||
FreeAndNil(SearchReplaceDialog);
|
||||
|
||||
// Close database connection
|
||||
DoDisconnect;
|
||||
|
||||
// Clearing query and browse data.
|
||||
SetLength(DataGridResult.Rows, 0);
|
||||
SetLength(DataGridResult.Columns, 0);
|
||||
|
||||
// Close database connection
|
||||
DoDisconnect;
|
||||
|
||||
// Save various settings
|
||||
OpenRegistry;
|
||||
MainReg.WriteInteger(REGNAME_TOOLBAR2LEFT, ToolBarStandard.Left);
|
||||
|
||||
Reference in New Issue
Block a user