diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-03-01 12:07:51 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-03-01 12:07:51 +0000 |
commit | 3d8390396fbd038beacda8571ec4167c775e9667 (patch) | |
tree | 71907a250a499f6e687e8d1f7f2535907575e3bb /scripting | |
parent | e0c59e2068887f371e89dacc1d39032673d89c7e (diff) |
INTEGRATION: CWS scriptingf11 (1.5.2); FILE MERGED
2005/02/10 13:57:23 toconnor 1.5.2.1: #i41384# fix problem with object destruction that caused crash
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/provider/MasterScriptProviderFactory.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripting/source/provider/MasterScriptProviderFactory.cxx b/scripting/source/provider/MasterScriptProviderFactory.cxx index af4312e316d0..e612f79764d4 100644 --- a/scripting/source/provider/MasterScriptProviderFactory.cxx +++ b/scripting/source/provider/MasterScriptProviderFactory.cxx @@ -2,9 +2,9 @@ * * $RCSfile: MasterScriptProviderFactory.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-01-27 15:32:17 $ + * last change: $Author: kz $ $Date: 2005-03-01 13:07:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -89,7 +89,13 @@ MasterScriptProviderFactory::MasterScriptProviderFactory( MasterScriptProviderFactory::~MasterScriptProviderFactory() { - if (m_MSPList) delete m_MSPList; + // by setting m_MSPListHolder to an empty reference the existing + // Reference to the ActiveMSPList object will get released causing + // the ActiveMSPList to get destructed + if (m_MSPListHolder.is()) + { + m_MSPListHolder = Reference< lang::XEventListener >(); + } } |