]> git.sesse.net Git - vlc/commitdiff
Qt: fix a potential crash in audioDevice Menu
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 20 Aug 2013 16:56:50 +0000 (18:56 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 20 Aug 2013 16:56:50 +0000 (18:56 +0200)
Close #9222

modules/gui/qt4/menus.cpp

index 254b23f1e590c7f604ffe55d5357243a8eb669d2..750bed88e80357be0944437391c19f1b32a65810 100644 (file)
@@ -1550,7 +1550,7 @@ void VLCMenuBar::updateAudioDevice( intf_thread_t * p_intf, audio_output_t *p_ao
     char **ids, **names;
     char *selected;
 
-    if( !p_aout )
+    if( !p_aout || !current )
         return;
 
     current->clear();