diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-09-02 11:26:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-02 12:14:51 +0100 |
commit | 09b667d155e8ea6963ede60ae5860952af20de4f (patch) | |
tree | cda005e30940cfcc81289e2f8a29622a3ff7f567 /sfx2 | |
parent | 2f76c093f5e7150914c27d49d5275c885a6ff8dc (diff) |
widget leak on filling non-existing infobar in help
Window () with live children destroyed: PushButton (Edit document)
Change-Id: I2aa05f59f08cfa78ba895933ef298908a9cbb675
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 40d4b67603b0..1e70bd693330 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -3346,6 +3346,14 @@ void SfxViewFrame::AppendInfoBar( const OUString& sId, const OUString& sMessage, pInfoBars->appendInfoBar( sId, sMessage, aButtons ); 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 ) |