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

Julien Nabet serval2412 at yahoo.fr
Sun Feb 24 15:23:14 PST 2013


 scripting/source/stringresource/stringresource.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3901964b6d1fb2117cb983a7eedf80da93ba5530
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Feb 24 14:09:54 2013 +0100

    coverity#704434 Non-array delete for scalars
    
    Change-Id: Ie92de56ead7988d951fe44cf63b4e72214b1e22f
    Reviewed-on: https://gerrit.libreoffice.org/2358
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index e88ff5a..4be1a77 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -2265,7 +2265,7 @@ bool StringResourcePersistenceImpl::implWritePropertiesFile( LocaleItem* pLocale
             }
         }
 
-        delete pIdPtrs;
+        delete[] pIdPtrs;
     }
 
     bSuccess = true;


More information about the Libreoffice-commits mailing list