summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2008-12-16 14:37:17 +0000
committerPhilipp Lohmann <pl@openoffice.org>2008-12-16 14:37:17 +0000
commitedd045d4d75617b64bf9b9f08adfcbd6d94470ec (patch)
tree3a761780345c24b5f82c42ce38666cc9cd913197 /framework
parent2aba9f078c1e241eec4d453eb52c08eca743d695 (diff)
#i93173# lazy deletion of toolbars
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/toolbarmanager.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx
index 7d75f8a374..d4948a90ce 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;
}