From 71f786ff843e4a441c8bb29eb67155ccd0de79ec Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 14 Aug 2016 18:10:29 +0200 Subject: [PATCH] Delete the WorkQueue first Fixes a potential crash on exit. --- apps/openmw/mwrender/renderingmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwrender/renderingmanager.cpp b/apps/openmw/mwrender/renderingmanager.cpp index ab76b86f1a..8f73036e91 100644 --- a/apps/openmw/mwrender/renderingmanager.cpp +++ b/apps/openmw/mwrender/renderingmanager.cpp @@ -258,6 +258,8 @@ namespace MWRender RenderingManager::~RenderingManager() { + // let background loading thread finish before we delete anything else + mWorkQueue = NULL; } MWRender::Objects& RenderingManager::getObjects()