From fc7a557bfc8047395e17a03515cfedb7fe54a14d Mon Sep 17 00:00:00 2001 From: Cody Permann Date: Thu, 30 Nov 2017 15:16:25 -0700 Subject: [PATCH] Migrate to smart pointers in main.C closes #40 --- src/main.C | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.C b/src/main.C index e1a66d2c68..d8ed9733f0 100644 --- a/src/main.C +++ b/src/main.C @@ -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 app = AppFactory::createAppShared("BaHunApp", argc, argv); // Execute the application app->run(); - // Free up the memory we created earlier - delete app; - return 0; }