Remove work around in TileElement test fixture

This commit is contained in:
Ted John 2018-04-27 18:24:18 +01:00
parent 7075f6ca25
commit ad6ebd646c
1 changed files with 0 additions and 17 deletions

View File

@ -27,23 +27,6 @@ protected:
game_load_init();
SUCCEED();
}
static void TearDownTestCase()
{
// FIXME: If this is not reset here, the context will outlive
// _availableObjectStringIds from Language.cpp, but upon its destruction
// OpenRCT2::Context::~Context() ../src/openrct2/Context.cpp:135
// object_manager_unload_all_objects() ../src/openrct2/object/ObjectManager.cpp:620
// ObjectManager::UnloadAll() ../src/openrct2/object/ObjectManager.cpp:207
// ObjectManager::UnloadObject(Object*) ../src/openrct2/object/ObjectManager.cpp:329
// RideObject::Unload() ../src/openrct2/object/RideObject.cpp:334
// language_free_object_string(unsigned short) ../src/openrct2/localisation/Language.cpp:274
// wants to access _availableObjectStringIds, which is already gone.
//
// This hack evicts context and ensures _availableObjectStringIds is
// available for the time we want to use it, until a better solution is implemented.
_context.reset();
}
private:
static std::shared_ptr<IContext> _context;
};