Browse Source

qt: fix ML event register leak when compositor fails to be created

In the case where compositor fails to start the MediaLib object is created then
destroyed using a deleteLater, but the destructor was never called as the main
loop was never started.
pull/134/head
Pierre Lamot 5 years ago
committed by Hugo Beauzée-Luyssen
parent
commit
f45fd76fe8
  1. 2
      modules/gui/qt/qt.cpp

2
modules/gui/qt/qt.cpp

@ -792,6 +792,8 @@ static void *Thread( void *obj )
msg_Err(p_intf, "unable to create main interface");
delete p_intf->p_mi;
p_intf->p_mi = nullptr;
//process deleteLater events as the main loop will never run
QCoreApplication::sendPostedEvents(nullptr, QEvent::DeferredDelete);
return ThreadCleanup( p_intf, CLEANUP_ERROR );
}

Loading…
Cancel
Save