[vlc-commits] Qt: fix quitting deletion order

Jean-Baptiste Kempf git at videolan.org
Mon Oct 10 00:36:24 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct 10 00:35:45 2011 +0200| [af2f52eb5cb4e5f6e42f3b26e34beab2f69c1e61] | committer: Jean-Baptiste Kempf

Qt: fix quitting deletion order

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

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

diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 2df7d54..96ce80d 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -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();
 



More information about the vlc-commits mailing list