Reverts [24331] , fix a memleak. Add a debug message to help catching the real bug...
authorRafaël Carré <funman@videolan.org>
Thu, 17 Jan 2008 16:13:03 +0000 (16:13 +0000)
committerRafaël Carré <funman@videolan.org>
Thu, 17 Jan 2008 16:13:03 +0000 (16:13 +0000)
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/qt4.cpp

index a203666..7bfeb55 100644 (file)
@@ -317,6 +317,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
 
 MainInterface::~MainInterface()
 {
+    msg_Dbg( p_intf, "Destroying the main interface" );
+
     if( playlistWidget ) playlistWidget->savingSettings( settings );
     if( ExtendedDialog::exists() )
         ExtendedDialog::getInstance( p_intf )->savingSettings();
index a6a9930..1f7e4fe 100644 (file)
@@ -320,8 +320,7 @@ static void Init( intf_thread_t *p_intf )
     /* And quit */
     MainInputManager::killInstance();
     DialogsProvider::killInstance();
-    // This can occasion double free. to check
-    //delete p_intf->p_sys->p_mi;
+    delete p_intf->p_sys->p_mi;
     delete app;
 }