TestSuite: Better memory management for globals by using std::unique_ptr.
This commit is contained in:
parent
0f96032487
commit
2786b6b678
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue