rem: return app.exec();
add: bool ret = app.exec(); while (KMainWindow::memberList->first()) delete KMainWindow::memberList->first(); return ret;
context: int main( int argc, char *argv[] ){  KLocale::setMainCatalogue( "kaddressbook" );  KCmdLineArgs::init( argc, argv, KABCore::createAboutData() );  KCmdLineArgs::addCmdLineOptions( kmoptions );  KUniqueApplication::addCmdLineOptions();  if ( !KAddressBookApp::start() )    exit( 0 );  KAddressBookApp app;  KGlobal::locale()->insertCatalogue( "libkdepim" );  return app.exec();}