]> git.sesse.net Git - vlc/commitdiff
Qt: fix quitting deletion order
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 9 Oct 2011 22:35:45 +0000 (00:35 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 9 Oct 2011 22:35:45 +0000 (00:35 +0200)
modules/gui/qt4/qt4.cpp

index 2df7d54392578ba926f2b5be79a4fa0dde66d617..96ce80dfa570bbb802f24a738c1d4c6c8f2d3a4e 100644 (file)
@@ -554,12 +554,12 @@ static void *Thread( void *obj )
     else
         getSettings()->remove( "filedialog-path" );
 
-    /* Delete the configuration. Application has to be deleted after that. */
-    delete p_intf->p_sys->mainSettings;
-
     /* */
     delete p_intf->p_sys->pl_model;
 
+    /* Delete the configuration. Application has to be deleted after that. */
+    delete p_intf->p_sys->mainSettings;
+
     /* Destroy the MainInputManager */
     MainInputManager::killInstance();