summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rsc/source/tools/rscdef.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx
index c2500f131322..7ecbe58c45fb 100644
--- a/rsc/source/tools/rscdef.cxx
+++ b/rsc/source/tools/rscdef.cxx
@@ -129,6 +129,7 @@ RscDefine::RscDefine( sal_uLong lKey, const OString& rDefName, sal_Int32 lDefId
RscDefine::RscDefine( sal_uLong lKey, const OString& rDefName,
RscExpression * pExpression )
: StringNode( rDefName )
+ , lId(0)
{
nRefCount = 0;
lFileKey = lKey;
@@ -138,8 +139,7 @@ RscDefine::RscDefine( sal_uLong lKey, const OString& rDefName,
RscDefine::~RscDefine()
{
- if( pExp )
- delete pExp;
+ delete pExp;
if( nRefCount )
RscExit( 14 );
}