diff --git a/test_suite/helpers/globals.cxx b/test_suite/helpers/globals.cxx index 70ec72afd..6ead84a37 100644 --- a/test_suite/helpers/globals.cxx +++ b/test_suite/helpers/globals.cxx @@ -87,7 +87,8 @@ namespace fgtest } } - TimeManager* t = new TimeManager; + std::unique_ptr t; + t.reset(new TimeManager); t->init(); // establish mag-var data }