1
0
Fork 0

TestSuite: Better memory management for globals by using std::unique_ptr.

This commit is contained in:
Edward d'Auvergne 2018-03-15 14:04:33 +01:00
parent 0f96032487
commit 2786b6b678

View file

@ -87,7 +87,8 @@ namespace fgtest
} }
} }
TimeManager* t = new TimeManager; std::unique_ptr<TimeManager> t;
t.reset(new TimeManager);
t->init(); // establish mag-var data t->init(); // establish mag-var data
} }