Fixed bugs in CCClient, added missing delete/desttructors for restart
This commit is contained in:
parent
5c065a8e48
commit
2b97e2f4ff
17 changed files with 194 additions and 110 deletions
|
@ -25,7 +25,13 @@
|
|||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
App app(argc, argv);
|
||||
for (;;) {
|
||||
App* app = new App(argc, argv);
|
||||
int res = app->start();
|
||||
delete app;
|
||||
|
||||
return app.exec();
|
||||
if (res != ERESTART) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue