mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Make sure Qt objects are deleted on the Qt main thread
This commit is contained in:
@@ -722,7 +722,8 @@ void PythonContext::outstream_del(PyObject *self)
|
||||
{
|
||||
PythonContext *context = redirector->context;
|
||||
|
||||
delete context;
|
||||
// delete the context on the UI thread.
|
||||
GUIInvoke::call([context]() { delete context; });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user