diff options
author | Philipp Lohmann <pl@openoffice.org> | 2008-12-16 14:37:17 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2008-12-16 14:37:17 +0000 |
commit | 26ede1844bf8f599449fbc77e9fbcf008e861e1c (patch) | |
tree | 85ee90d6be2a711bb124319326dea22b2425e36d /framework | |
parent | ba13251d79d9eee4e77beebe3f6b02e8127b8892 (diff) |
#i93173# lazy deletion of toolbars
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/toolbarmanager.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index 5e51f00faf77..e91585008d00 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -336,7 +336,8 @@ void ToolBarManager::Destroy() delete static_cast< AddonsParams* >( m_pToolBar->GetItemData( nItemId )); } - delete m_pToolBar; + // #i93173# delete toolbar lazily as we can still be in one of its handlers + m_pToolBar->doLazyDelete(); m_pToolBar = 0; } |