Fix AV on application close if usermanager was opened (or one of the other recycled dialogs). Nearly sure that this nails issue #1018 - the memory address points to forms.pas.

This commit is contained in:
Ansgar Becker
2009-03-03 23:53:11 +00:00
parent bf2484a09e
commit 18d4942066

View File

@@ -1204,6 +1204,12 @@ begin
FreeAndNil(CreateTableForm);
FreeAndNil(RoutineEditForm);
FreeAndNil(MaintenanceForm);
FreeAndNil(UserManagerForm);
FreeAndNil(ViewForm);
FreeAndNil(SelectDBObjectForm);
FreeAndNil(SQLHelpForm);
FreeAndNil(CreateDatabaseForm);
FreeAndNil(TablePropertiesForm);
debug('mem: clearing query and browse data.');
SetLength(FDataGridResult.Rows, 0);