mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Free object editor previously used by a now disconnected session. Fixes an AV described on http://www.heidisql.com/forum.php?t=8686
This commit is contained in:
@@ -1171,8 +1171,7 @@ var
|
||||
OpenSessions: String;
|
||||
Connection: TDBConnection;
|
||||
begin
|
||||
// Destroy editors and dialogs. Must be done before connection gets closed, as some destructors do SQL stuff.
|
||||
FreeAndNil(ActiveObjectEditor);
|
||||
// Destroy dialogs
|
||||
FreeAndNil(FSearchReplaceDialog);
|
||||
|
||||
// Save opened session names in root folder
|
||||
@@ -1851,6 +1850,7 @@ begin
|
||||
FreeAndNil(DataGridHiddenColumns);
|
||||
SynMemoFilter.Clear;
|
||||
SetLength(DataGridSortColumns, 0);}
|
||||
FreeAndNil(ActiveObjectEditor);
|
||||
RefreshHelperNode(HELPERNODE_PROFILE);
|
||||
RefreshHelperNode(HELPERNODE_COLUMNS);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user