From: Jean-Baptiste Kempf Date: Thu, 17 Jan 2008 23:01:35 +0000 (+0000) Subject: Qt4 - revert the revertion :D X-Git-Tag: 0.9.0-test0~3399 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=080cb247d4e4e6ac9b379293f24006e21c303821;p=vlc Qt4 - revert the revertion :D 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 --- diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp index 34d63a31de..de9f8e2f1e 100644 --- a/modules/gui/qt4/main_interface.cpp +++ b/modules/gui/qt4/main_interface.cpp @@ -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; } /***************************** diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp index 1f7e4fe55b..3f6c666dd8 100644 --- a/modules/gui/qt4/qt4.cpp +++ b/modules/gui/qt4/qt4.cpp @@ -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; }