Issue #1243: fix crash in reconnect, due to free'd list of IS objects

This commit is contained in:
Ansgar Becker
2020-12-13 08:17:49 +01:00
parent cb77a602b5
commit 04a32cb035

View File

@ -1842,6 +1842,7 @@ begin
ClearCache(True); ClearCache(True);
FKeepAliveTimer.Free; FKeepAliveTimer.Free;
FFavorites.Free; FFavorites.Free;
FInformationSchemaObjects.Free;
inherited; inherited;
end; end;
@ -5816,7 +5817,6 @@ begin
FreeAndNil(FCharsetTable); FreeAndNil(FCharsetTable);
FreeAndNil(FSessionVariables); FreeAndNil(FSessionVariables);
FreeAndNil(FTableEngines); FreeAndNil(FTableEngines);
FreeAndNil(FInformationSchemaObjects);
if IncludeDBObjects then begin if IncludeDBObjects then begin
ClearAllDbObjects; ClearAllDbObjects;
FColumnCache.Clear; FColumnCache.Clear;