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:
parent
3732979eec
commit
71f786ff84
@ -258,6 +258,8 @@ namespace MWRender
|
||||
|
||||
RenderingManager::~RenderingManager()
|
||||
{
|
||||
// let background loading thread finish before we delete anything else
|
||||
mWorkQueue = NULL;
|
||||
}
|
||||
|
||||
MWRender::Objects& RenderingManager::getObjects()
|
||||
|
Loading…
x
Reference in New Issue
Block a user