mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
- Fixed memory leak introduced in last commit
This commit is contained in:
parent
6a3dddd0cc
commit
cfcd9b7eaf
1 changed files with 6 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue