mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Do not trigger OnDBObjectsCleared in TMySQLConnection.Destroy, to avoid loop backs to connection instance which triggers AVs. Fixes issue #1878.
This commit is contained in:
@ -294,6 +294,7 @@ end;
|
|||||||
destructor TMySQLConnection.Destroy;
|
destructor TMySQLConnection.Destroy;
|
||||||
begin
|
begin
|
||||||
if Active then Active := False;
|
if Active then Active := False;
|
||||||
|
FOnDBObjectsCleared := nil;
|
||||||
ClearCache;
|
ClearCache;
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user