mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Ensure python global shutdown after context has closed
This commit is contained in:
@@ -467,6 +467,9 @@ void PythonContext::Finish()
|
||||
|
||||
void PythonContext::GlobalShutdown()
|
||||
{
|
||||
if(!initialised())
|
||||
return;
|
||||
|
||||
// must happen on the UI thread
|
||||
if(qApp->thread() != QThread::currentThread())
|
||||
{
|
||||
|
||||
@@ -365,10 +365,10 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
config.Save();
|
||||
|
||||
PythonContext::GlobalShutdown();
|
||||
}
|
||||
|
||||
PythonContext::GlobalShutdown();
|
||||
|
||||
Formatter::shutdown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user