From 18d4942066fc99401b07dcdf4af48ff56382e7a5 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Tue, 3 Mar 2009 23:53:11 +0000 Subject: [PATCH] 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. --- source/main.pas | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/main.pas b/source/main.pas index 28b13f66..417a55b6 100644 --- a/source/main.pas +++ b/source/main.pas @@ -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);