mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 10:15:36 +01:00
Fix TileElementWantsFootpathConnection test not releasing context.
This commit is contained in:
@@ -134,6 +134,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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user