Commit 0b916e29 authored by Rafaël Carré's avatar Rafaël Carré

Reverts [24331] , fix a memleak. Add a debug message to help catching the real bug. refs #1397

parent 930c7664
......@@ -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();
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment