[Libreoffice-commits] core.git: lotuswordpro/source

Norbert Thiebaud nthiebaud at gmail.com
Fri Oct 31 23:45:23 PDT 2014


 lotuswordpro/source/filter/lwptools.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 513956cfaddda21b82af76f2c79ed2f2ddec2c82
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sat Nov 1 01:32:46 2014 -0500

    coverity#1250437 : Ressource Leak
    
    Change-Id: Id1c4885c05c70fedcf85360e3ec7c3e166fa01c6

diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx
index c6fad99..cd61c4d 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];


More information about the Libreoffice-commits mailing list