From 513956cfaddda21b82af76f2c79ed2f2ddec2c82 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 1 Nov 2014 01:32:46 -0500 Subject: coverity#1250437 : Ressource Leak Change-Id: Id1c4885c05c70fedcf85360e3ec7c3e166fa01c6 --- lotuswordpro/source/filter/lwptools.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lotuswordpro') 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]; -- cgit