rem: mainWin->writeConfig(FALSE); delete mainWin;
context: main(int argc, char *argv[]){  KMMainWin* mainWin;  init(argc, argv);  // filterMgr->dump();  mainWin = new KMMainWin;  mainWin->show();  if (argc > 1)    processArgs(argc-1, argv+1);  recoverDeadLetters();  if (firstStart)  {    KMSettings* dlg = new KMSettings;    dlg->show();  }  app->exec();  mainWin->writeConfig(FALSE);  delete mainWin;  cleanup();}