mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix TileElementWantsFootpathConnection test not releasing context.
This commit is contained in:
parent
4654e2fc19
commit
8721bef807
|
@ -132,6 +132,9 @@ namespace OpenRCT2
|
|||
, _uiContext(uiContext)
|
||||
, _localisationService(std::make_unique<LocalisationService>(env))
|
||||
{
|
||||
// Can't have more than one context currently.
|
||||
Guard::Assert(Instance == nullptr);
|
||||
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,6 +36,12 @@ protected:
|
|||
SUCCEED();
|
||||
}
|
||||
|
||||
static void TearDownTestCase()
|
||||
{
|
||||
if (_context)
|
||||
_context.reset();
|
||||
}
|
||||
|
||||
private:
|
||||
static std::shared_ptr<IContext> _context;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue