summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-11-01 01:32:46 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-11-01 01:44:25 -0500
commit513956cfaddda21b82af76f2c79ed2f2ddec2c82 (patch)
treee717cd80260676c7b06112201f6a852145465447 /lotuswordpro
parent1baad070d8c2a38581cf33d803c5043f1974647f (diff)
coverity#1250437 : Ressource Leak
Change-Id: Id1c4885c05c70fedcf85360e3ec7c3e166fa01c6
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptools.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx
index c6fad99f4289..cd61c4d2f9e1 100644
--- a/lotuswordpro/source/filter/lwptools.cxx
+++ b/lotuswordpro/source/filter/lwptools.cxx
@@ -603,7 +603,10 @@ XFDateStyle* LwpTools::GetSystemDateStyle(bool bLongFormat)
default:
{
if ((cSymbol>='A' && cSymbol<='Z') || (cSymbol>='a' && cSymbol<='z') )
+ {
+ delete pDateStyle;
return NULL;
+ }
else//TEXT
{
//UChar buffer[1024];