Changeset 38 for trunk/Forms/UMainForm.pas
- Timestamp:
- Mar 8, 2012, 3:40:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.pas
r37 r38 170 170 procedure TMainForm.FormDestroy(Sender: TObject); 171 171 begin 172 Report.Free;173 TreeState.Free;174 PersistentForm.Free;172 FreeAndNil(Report); 173 FreeAndNil(TreeState); 174 FreeAndNil(PersistentForm); 175 175 end; 176 176 … … 254 254 procedure TMainForm.AConnectExecute(Sender: TObject); 255 255 begin 256 try 257 LoginForm := TLoginForm.Create(MainForm); 256 258 Core.Profiles.LoadFromRegistry(Core.RegistryRootKey, Core.RegistryKey); 257 259 if LoginForm.ShowModal = mrOK then begin … … 273 275 end; 274 276 end; 277 finally 278 LoginForm.Free; 279 end; 275 280 end; 276 281 … … 304 309 procedure TMainForm.MenuItem17Click(Sender: TObject); 305 310 begin 306 LoginForm.ShowModal; 311 try 312 LoginForm := TLoginForm.Create(MainForm); 313 LoginForm.ShowModal; 314 finally 315 LoginForm.Free; 316 end; 307 317 end; 308 318
Note:
See TracChangeset
for help on using the changeset viewer.