diff options
author | Malte Timmermann <mt@openoffice.org> | 2002-02-25 15:30:39 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2002-02-25 15:30:39 +0000 |
commit | ae1a087f79d8faca15cfa7ee61c4e5685f61e521 (patch) | |
tree | b9b18be8dcee655507d010f4f65fa1b9fcc865fa | |
parent | eeed907b4b1544c255fcdafa57bbad9c1546dbb8 (diff) |
#97034# dispose the accessible component
-rw-r--r-- | vcl/source/window/window.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index d19ca1efeaef..4b7486ad57c9 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -2,9 +2,9 @@ * * $RCSfile: window.cxx,v $ * - * $Revision: 1.60 $ + * $Revision: 1.61 $ * - * last change: $Author: mt $ $Date: 2002-02-14 19:45:43 $ + * last change: $Author: mt $ $Date: 2002-02-25 16:30:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -168,6 +168,9 @@ #ifndef _COM_SUN_STAR_LANG_XINITIALIZATION_HPP_ #include <com/sun/star/lang/XInitialization.hpp> #endif +#ifndef _COM_SUN_STAR_LANG_XCOMPONENT_HPP_ +#include <com/sun/star/lang/XComponent.hpp> +#endif #ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLE_HDL_ #include <drafts/com/sun/star/accessibility/XAccessible.hpp> #endif @@ -4034,6 +4037,13 @@ Window::~Window() if ( pWrapper ) pWrapper->WindowDestroyed( this ); + if ( mxAccessible.is() ) + { + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> xC( mxAccessible, ::com::sun::star::uno::UNO_QUERY ); + if ( xC.is() ) + xC->dispose(); + } + ImplSVData* pSVData = ImplGetSVData(); if ( pSVData->maHelpData.mpHelpWin && (pSVData->maHelpData.mpHelpWin->GetParent() == this) ) |