Qt4 - revert the revertion :D
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 17 Jan 2008 23:01:35 +0000 (23:01 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 17 Jan 2008 23:01:35 +0000 (23:01 +0000)
Jokes besides, if ~MainInterface() is called, then p_mi is destroyed, and p_sys->p_mi too. I just hope I am not wrong :D

modules/gui/qt4/main_interface.cpp
modules/gui/qt4/qt4.cpp

index 34d63a3..de9f8e2 100644 (file)
@@ -352,6 +352,7 @@ MainInterface::~MainInterface()
     p_intf->pf_request_window = NULL;
     p_intf->pf_release_window = NULL;
     p_intf->pf_control_window = NULL;
+    p_intf->p_sys->p_mi = NULL;
 }
 
 /*****************************
index 1f7e4fe..3f6c666 100644 (file)
@@ -320,7 +320,6 @@ static void Init( intf_thread_t *p_intf )
     /* And quit */
     MainInputManager::killInstance();
     DialogsProvider::killInstance();
-    delete p_intf->p_sys->p_mi;
     delete app;
 }