Avoid segfault
authorChristophe Mutricy <xtophe@videolan.org>
Sun, 25 Nov 2007 16:04:21 +0000 (16:04 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sun, 25 Nov 2007 16:04:21 +0000 (16:04 +0000)
modules/gui/qt4/main_interface.cpp

index 1483dab..6fada19 100644 (file)
@@ -304,7 +304,8 @@ MainInterface::~MainInterface()
     settings->setValue( "playlist-floats", dockPL->isFloating() );
     settings->setValue( "adv-controls", getControlsVisibilityStatus() & CONTROLS_ADVANCED );
     settings->setValue( "pos", pos() );
-    playlistWidget->saveSettings( settings );
+    if( playlistWidget )
+        playlistWidget->saveSettings( settings );
     settings->endGroup();
     delete settings;
     p_intf->b_interaction = VLC_FALSE;