mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix AV after cancelling connection dialog
This commit is contained in:
@@ -1175,8 +1175,10 @@ begin
|
||||
SetLength(FQueryGridResult.Columns, 0);
|
||||
|
||||
// Closing connection
|
||||
FMysqlConn.Disconnect;
|
||||
FreeAndNil(FMysqlConn);
|
||||
if Assigned(FMysqlConn) then begin
|
||||
FMysqlConn.Disconnect;
|
||||
FreeAndNil(FMysqlConn);
|
||||
end;
|
||||
|
||||
EnterCriticalSection(SqlMessagesLock);
|
||||
FreeAndNil(SqlMessages);
|
||||
|
||||
Reference in New Issue
Block a user