1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-24 12:53:08 +00:00

Don't extend the lifetime of ScreenCapture objects beyond that of the objects using them

This commit is contained in:
Evil Eye 2025-12-04 19:18:44 +01:00
parent ebfe91a108
commit e097a15627

View file

@ -399,7 +399,11 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
OMW::Engine::~Engine()
{
if (mScreenCaptureOperation != nullptr)
{
mScreenCaptureOperation->stop();
mScreenCaptureOperation = nullptr;
}
mScreenCaptureHandler = nullptr;
mMechanicsManager = nullptr;
mDialogueManager = nullptr;