mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
server memory leak fixed
This commit is contained in:
parent
fd171fa260
commit
83e2e3666a
4 changed files with 12 additions and 6 deletions
|
|
@ -129,8 +129,8 @@ int main(int argc, char *argv[])
|
|||
if (testRandom)
|
||||
testRNG();
|
||||
|
||||
Servatrice server(settings);
|
||||
QObject::connect(&server, SIGNAL(destroyed()), &app, SLOT(quit()), Qt::QueuedConnection);
|
||||
Servatrice *server = new Servatrice(settings);
|
||||
QObject::connect(server, SIGNAL(destroyed()), &app, SLOT(quit()), Qt::QueuedConnection);
|
||||
|
||||
std::cerr << "-------------------------" << std::endl;
|
||||
std::cerr << "Server initialized." << std::endl;
|
||||
|
|
@ -142,6 +142,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
delete rng;
|
||||
delete settings;
|
||||
delete loggerThread;
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue