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:
parent
ebfe91a108
commit
e097a15627
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue