[vlc-commits] Qt4: main_interface: fix exit crash.

Francois Cartegnie git at videolan.org
Sat Oct 15 21:29:29 CEST 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Oct 15 21:27:55 2011 +0200| [fc9e49bef5ba9d624b5584fd5053ab18d5a8686e] | committer: Francois Cartegnie

Qt4: main_interface: fix exit crash.

Playlist widget could be uninstanciated

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

 modules/gui/qt4/main_interface.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index ae570bc..397154e 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -661,7 +661,8 @@ void MainInterface::releaseVideoSlot( void )
 
     if( stackCentralW->currentWidget() == videoWidget )
         restoreStackOldWidget();
-    else if( playlistWidget->artContainer->currentWidget() == videoWidget )
+    else if( playlistWidget &&
+             playlistWidget->artContainer->currentWidget() == videoWidget )
     {
         playlistWidget->artContainer->setCurrentIndex( 0 );
         stackCentralW->addWidget( videoWidget );



More information about the vlc-commits mailing list