some code refraction to get rid of memeory leakage

This commit is contained in:
Dhanya Maliakal
2015-02-04 16:11:13 +01:00
parent f30833a460
commit e975a75be9
5 changed files with 33 additions and 27 deletions

View File

@ -85,6 +85,7 @@ int main(int argc, char *argv[]) {
user->stop();
}
delete user;
cout << "Goodbye!" << endl;
return 0;
}