[vlc-commits] Qt: fix a crash when using the skins

Jean-Baptiste Kempf git at videolan.org
Mon Sep 10 19:36:42 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 10 19:36:14 2012 +0200| [7a216cf685a834d038da9b474271687167c10441] | committer: Jean-Baptiste Kempf

Qt: fix a crash when using the skins

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7a216cf685a834d038da9b474271687167c10441
---

 modules/gui/qt4/menus.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index f8bd1e5..04e88c7 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -958,6 +958,7 @@ void VLCMenuBar::MiscPopupMenu( intf_thread_t *p_intf, bool show )
 {
     POPUP_BOILERPLATE
 
+    menu = new QMenu();
     if( p_input )
     {
         varnames.append( "audio-es" );
@@ -965,7 +966,6 @@ void VLCMenuBar::MiscPopupMenu( intf_thread_t *p_intf, bool show )
         menu->addSeparator();
     }
 
-    menu = new QMenu();
     Populate( p_intf, menu, varnames, objects );
 
     menu->addSeparator();



More information about the vlc-commits mailing list