Commit 6ae141e2 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

qt: fix lock-order-inversion on close

p_sys->p_mi doesn't need to be protected here since only this thread can write
on it.
parent 455ed9bc
......@@ -750,15 +750,15 @@ static void *ThreadCleanup( intf_thread_t *p_intf, bool error )
}
else
open_state = OPEN_STATE_INIT;
}
if( p_sys->p_mi != NULL)
{
MainInterface *p_mi = p_sys->p_mi;
p_sys->p_mi = NULL;
/* Destroy first the main interface because it is connected to some
slots in the MainInputManager */
delete p_mi;
}
if( p_sys->p_mi != NULL)
{
MainInterface *p_mi = p_sys->p_mi;
p_sys->p_mi = NULL;
/* Destroy first the main interface because it is connected to some
slots in the MainInputManager */
delete p_mi;
}
/* */
......
Markdown is supported
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