]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/menus.cpp
factorize.
[vlc] / modules / gui / qt4 / menus.cpp
index 599263efda4264e360e923e42c22be3df0dda339..f47a270048122f91fed2ba17dc876428d6b16fcf 100644 (file)
@@ -893,8 +893,7 @@ void QVLCMenu::MiscPopupMenu( intf_thread_t *p_intf )
 void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
 {
     /* Delete old popup if there is one */
-    if( p_intf->p_sys->p_popup_menu )
-        delete p_intf->p_sys->p_popup_menu;
+    delete p_intf->p_sys->p_popup_menu;
 
     if( !show )
     {