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:
Ansgar Becker
2010-04-19 22:20:04 +00:00
parent 604672f3d8
commit 71ae99d225

View File

@ -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;