1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

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()