diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index 1c95ccc932..c67aaffa4c 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -257,10 +257,10 @@ OMW::Engine::~Engine() mWorkQueue = nullptr; - mResourceSystem.reset(); - mViewer = nullptr; + mResourceSystem.reset(); + delete mEncoder; mEncoder = nullptr;