summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-01 14:30:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-01 21:02:06 +0000
commit59fc4ae4bd209ebe33872a8610a0b992d68d662b (patch)
treeb7ad5e1f494e6ee9f8025976746d7ae9e8c3209c /lotuswordpro
parente80d263be87c6bc115a00859507237ea70fb9717 (diff)
coverity#736401 Resource leak
Change-Id: Ice79f5618bb22d2d22d5033a52732da383ff5643
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 cd61c4d2f9e1..7015651dc309 100644
--- a/lotuswordpro/source/filter/lwptools.cxx
+++ b/lotuswordpro/source/filter/lwptools.cxx
@@ -826,7 +826,10 @@ XFTimeStyle* LwpTools::GetSystemTimeStyle()
default:
{
if ((cSymbol>='A' && cSymbol<='Z') || (cSymbol>='a' && cSymbol<='z') )
+ {
+ delete pTimeStyle;
return NULL;
+ }
else//TEXT
{
sal_Unicode buffer[1024];