Kaydet (Commit) d4d28a97 authored tarafından Ariel Constenla-Haile's avatar Ariel Constenla-Haile Kaydeden (comit) Caolán McNamara

Resolves: #i124623# Dispose extension's Options page to avoid memory leaks

(cherry picked from commit 363c5553)

Change-Id: Ic04b523f5f9d4092889b3ad59569f02946091652
üst 8ce32af6
......@@ -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();
}
}
......
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