From 080cb247d4e4e6ac9b379293f24006e21c303821 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Thu, 17 Jan 2008 23:01:35 +0000 Subject: [PATCH] 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 --- modules/gui/qt4/main_interface.cpp | 1 + modules/gui/qt4/qt4.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2