rem: return app.exec();
add: int ret = app.exec();  delete wid;  return ret;
context: int main( int argc, char **argv ){  KAboutData aboutData( "testrecipienteditor",   "Test Recipient Editor", "0.1" );  KCmdLineArgs::init( argc, argv, &aboutData );  KApplication app;  QObject::connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );  QWidget *wid = new Composer( 0 );    wid->show();  return app.exec();}