Browse Source

- Fixed memory leak introduced in last commit

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
cfcd9b7eaf
  1. 9
      src/main.cpp

9
src/main.cpp

@ -179,13 +179,16 @@ int main(int argc, char *argv[]){ @@ -179,13 +179,16 @@ int main(int argc, char *argv[]){
QStringList torrentCmdLine = app->arguments();
// Remove first argument (program name)
torrentCmdLine.removeFirst();
GUI window(0, torrentCmdLine);
splash->finish(&window);
GUI *window = new GUI(0, torrentCmdLine);
splash->finish(window);
delete splash;
#ifndef Q_WS_WIN
signal(SIGTERM, sigtermHandler);
#endif
return app->exec();
int ret = app->exec();
delete window;
delete app;
return ret;
}

Loading…
Cancel
Save