diff options
author | Andreas Bregas <ab@openoffice.org> | 2001-08-01 10:02:48 +0000 |
---|---|---|
committer | Andreas Bregas <ab@openoffice.org> | 2001-08-01 10:02:48 +0000 |
commit | 98bcb990220b6f622d6efab214b39e48fac00b0c (patch) | |
tree | d5468d11d1bacefafbe31721b0d50f9a2169c32d /basic/source/runtime/runtime.cxx | |
parent | b80751ba88ca6e8499712b6af58e97de78443873 (diff) |
#88347# Store components in vector to dispose them after Basic execution
Diffstat (limited to 'basic/source/runtime/runtime.cxx')
-rw-r--r-- | basic/source/runtime/runtime.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index b0c48081babf..127f213cd934 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -2,9 +2,9 @@ * * $RCSfile: runtime.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: ab $ $Date: 2000-11-23 17:11:50 $ + * last change: $Author: ab $ $Date: 2001-08-01 11:02:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -301,6 +301,17 @@ SbiInstance::~SbiInstance() delete pDdeCtrl; delete pDllMgr; delete pNumberFormatter; + + // Dispose components, especially dialogs created in CreateUnoDialog + ComponentVector_t::const_iterator iPos( ComponentVector.begin() ); + while( iPos != ComponentVector.end() ) + { + Reference< XComponent > xDlgComponent = *iPos ; + if( xDlgComponent.is() ) + xDlgComponent->dispose(); + ++iPos; + } + ComponentVector.clear(); } SbiDllMgr* SbiInstance::GetDllMgr() |