summaryrefslogtreecommitdiff
path: root/configmgr/source
diff options
context:
space:
mode:
authorJörg Barfurth <jb@openoffice.org>2001-05-18 15:20:59 +0000
committerJörg Barfurth <jb@openoffice.org>2001-05-18 15:20:59 +0000
commit74ea2f1245c3f973e5283c9757a88d1b7525cfe3 (patch)
treedd8820119967fd4f9fdd33ade05d64a61fdf4f61 /configmgr/source
parent54ee41538f8712a4d93e0b05f07a4e8740d9fd62 (diff)
#86809# Fixed uninitialized pointer, check for NULL before calling release on tree manager
Diffstat (limited to 'configmgr/source')
-rw-r--r--configmgr/source/api2/providerimpl.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/configmgr/source/api2/providerimpl.cxx b/configmgr/source/api2/providerimpl.cxx
index 8c45882cee0d..efea102bdb6f 100644
--- a/configmgr/source/api2/providerimpl.cxx
+++ b/configmgr/source/api2/providerimpl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: providerimpl.cxx,v $
*
- * $Revision: 1.30 $
+ * $Revision: 1.31 $
*
- * last change: $Author: pl $ $Date: 2001-05-11 19:29:21 $
+ * last change: $Author: jb $ $Date: 2001-05-18 16:20:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -143,6 +143,7 @@ namespace configmgr
:m_pNewProviders(0)
,m_pProvider(_pProvider)
,m_pSession(NULL)
+ ,m_pTreeMgr(NULL)
{
uno::Reference< script::XTypeConverter > xConverter(
_xServiceFactory->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.script.Converter" ))), uno::UNO_QUERY);
@@ -254,8 +255,11 @@ namespace configmgr
//-----------------------------------------------------------------------------
OProviderImpl::~OProviderImpl()
{
- m_pTreeMgr->release();
- m_pTreeMgr = NULL;
+ if (m_pTreeMgr)
+ {
+ m_pTreeMgr->release();
+ m_pTreeMgr = NULL;
+ }
delete m_pNewProviders;
delete m_pSession;
}