Commit bba90c3e authored by Joerg Bornemann's avatar Joerg Bornemann
Browse files

fix crash on exit when using the inspector


Destroy the DevToolsHttpHandler early on, because ~DevToolsHttpHandler
assumes the browser's UI thread is still running.
This fixes a crash on exit in tst_inspectorserver.

Change-Id: I98476231b709d60c249e58e17b09de70aed6792b
Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Showing with 1 addition and 0 deletions
...@@ -153,6 +153,7 @@ void WebEngineContext::destroy() ...@@ -153,6 +153,7 @@ void WebEngineContext::destroy()
// Flush the UI message loop before quitting. // Flush the UI message loop before quitting.
while (delegate->DoWork()) { } while (delegate->DoWork()) { }
GLContextHelper::destroy(); GLContextHelper::destroy();
m_devtools.reset(0);
m_runLoop->AfterRun(); m_runLoop->AfterRun();
// Force to destroy RenderProcessHostImpl by destroying BrowserMainRunner. // Force to destroy RenderProcessHostImpl by destroying BrowserMainRunner.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment