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
This commit is contained in:
Kurt Zenker
2005-03-01 12:07:51 +00:00
parent e0c59e2068
commit 3d8390396f

View File

@@ -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 >();
}
}