Kaydet (Commit) 363c5553 authored tarafından Ariel Constenla-Haile's avatar Ariel Constenla-Haile

i124623 - Dispose extension's Options page to avoid memory leaks

üst 42c2b0ce
...@@ -2679,6 +2679,22 @@ ExtensionsTabPage::~ExtensionsTabPage() ...@@ -2679,6 +2679,22 @@ ExtensionsTabPage::~ExtensionsTabPage()
{ {
Hide(); Hide();
DeactivatePage(); DeactivatePage();
if ( m_xPage.is() )
{
Reference< XComponent > xComponent( m_xPage, UNO_QUERY );
if ( xComponent.is() )
{
try
{
xComponent->dispose();
}
catch ( const Exception & )
{
}
}
m_xPage.clear();
}
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment