Kaydet (Commit) ed76182b authored tarafından Caolán McNamara's avatar Caolán McNamara

valgrind: leak if dispose uncalled

üst 990577d0
...@@ -190,6 +190,7 @@ LayoutManager::~LayoutManager() ...@@ -190,6 +190,7 @@ LayoutManager::~LayoutManager()
{ {
Application::RemoveEventListener( LINK( this, LayoutManager, SettingsChanged ) ); Application::RemoveEventListener( LINK( this, LayoutManager, SettingsChanged ) );
m_aAsyncLayoutTimer.Stop(); m_aAsyncLayoutTimer.Stop();
delete m_pGlobalSettings;
} }
// Internal helper function // Internal helper function
...@@ -2934,7 +2935,7 @@ throw( RuntimeException ) ...@@ -2934,7 +2935,7 @@ throw( RuntimeException )
m_xFrame.clear(); m_xFrame.clear();
delete m_pGlobalSettings; delete m_pGlobalSettings;
m_pGlobalSettings = 0; m_pGlobalSettings = 0;
m_xDockingAreaAcceptor = Reference< ui::XDockingAreaAcceptor >(); m_xDockingAreaAcceptor = Reference< ui::XDockingAreaAcceptor >();
bDisposeAndClear = sal_True; bDisposeAndClear = sal_True;
} }
......
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