[vlc-commits] [Git][videolan/vlc][master] qt: fix ML event register leak when compositor fails to be created

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Thu Jan 20 16:01:08 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
f45fd76f by Pierre Lamot at 2022-01-20T15:38:09+00:00
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.

- - - - -


1 changed file:

- modules/gui/qt/qt.cpp


Changes:

=====================================
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 );
         }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f45fd76fe810dbc61d937988effa69709fabd2a8

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f45fd76fe810dbc61d937988effa69709fabd2a8
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list