Skip to content

Commit

Permalink
Merge pull request idaholab#42 from idaholab/smart_ptr
Browse files Browse the repository at this point in the history
Migrate to smart pointers in main.C
  • Loading branch information
WilkAndy authored Jan 3, 2018
2 parents 7328964 + fc7a557 commit d5fa113
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main.C
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ int main(int argc, char *argv[])
BaHunApp::registerApps();

// This creates dynamic memory that we're responsible for deleting
MooseApp * app = AppFactory::createApp("BaHunApp", argc, argv);
std::shared_ptr<MooseApp> app = AppFactory::createAppShared("BaHunApp", argc, argv);

// Execute the application
app->run();

// Free up the memory we created earlier
delete app;

return 0;
}

0 comments on commit d5fa113

Please sign in to comment.