diff options
Diffstat (limited to 'cui/source/options/treeopt.cxx')
-rw-r--r-- | cui/source/options/treeopt.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index fa5d8901f0ef..e5b1bf37d82d 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -2298,6 +2298,22 @@ ExtensionsTabPage::~ExtensionsTabPage() { Hide(); DeactivatePage(); + + if ( m_xPage.is() ) + { + Reference< XComponent > xComponent( m_xPage, UNO_QUERY ); + if ( xComponent.is() ) + { + try + { + xComponent->dispose(); + } + catch ( const Exception & ) + { + } + } + m_xPage.clear(); + } } |