diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx index aea23fa302d0..387dec6db1c2 100644 --- a/framework/source/uielement/uicommanddescription.cxx +++ b/framework/source/uielement/uicommanddescription.cxx @@ -618,11 +618,13 @@ UICommandDescription::UICommandDescription( const Reference< XComponentContext > if ( pIter != m_aUICommandsHashMap.end() ) pIter->second = m_xGenericUICommands; } -UICommandDescription::UICommandDescription( const Reference< XComponentContext >& rxContext, bool ) : - UICommandDescription_BASE(*static_cast(this)), - m_xContext( rxContext ) +UICommandDescription::UICommandDescription(const Reference< XComponentContext >& rxContext, bool) + : UICommandDescription_BASE(*static_cast(this)) + , m_bConfigRead(false) + , m_xContext(rxContext) { } + UICommandDescription::~UICommandDescription() { osl::MutexGuard g(rBHelper.rMutex);