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

widget leak on filling non-existing infobar in help

Window () with live children destroyed: PushButton (Edit document)

Change-Id: I2aa05f59f08cfa78ba895933ef298908a9cbb675
üst 2f76c093
...@@ -3346,6 +3346,14 @@ void SfxViewFrame::AppendInfoBar( const OUString& sId, const OUString& sMessage, ...@@ -3346,6 +3346,14 @@ void SfxViewFrame::AppendInfoBar( const OUString& sId, const OUString& sMessage,
pInfoBars->appendInfoBar( sId, sMessage, aButtons ); pInfoBars->appendInfoBar( sId, sMessage, aButtons );
ShowChildWindow( nId ); ShowChildWindow( nId );
} }
else
{
SAL_WARN( "sfx.view", "No consumer for InfoBar buttons, so deleting them instead" );
for (std::vector< PushButton* >::iterator it = aButtons.begin(); it != aButtons.end(); ++it)
{
delete *it;
}
}
} }
void SfxViewFrame::RemoveInfoBar( const OUString& sId ) void SfxViewFrame::RemoveInfoBar( const OUString& sId )
......
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