Delete the WorkQueue first

Fixes a potential crash on exit.
This commit is contained in:
scrawl 2016-08-14 18:10:29 +02:00
parent 3732979eec
commit 71f786ff84

View file

@ -258,6 +258,8 @@ namespace MWRender
RenderingManager::~RenderingManager()
{
// let background loading thread finish before we delete anything else
mWorkQueue = NULL;
}
MWRender::Objects& RenderingManager::getObjects()