Skip to content

Commit

Permalink
Migrate to smart pointers in main.C
Browse files Browse the repository at this point in the history
  • Loading branch information
permcody committed Nov 30, 2017
1 parent 7328964 commit fc7a557
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 fc7a557

Please sign in to comment.