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

Julien Nabet serval2412 at yahoo.fr
Tue Apr 29 01:05:13 PDT 2014


 setup_native/source/win32/customactions/shellextensions/layerlinks.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5c1c297fa2a0a2e5af0878fbd17dcf21810ac5f6
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Apr 29 10:03:18 2014 +0200

    Mismatch alloc/dealloc
    
    Cppcheck can't detect these cases for the moment
    See http://sourceforge.net/apps/trac/cppcheck/ticket/5740
    
    Change-Id: Iac3b5bdea8078b02d78afb53bb8afcb2673b4316

diff --git a/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx b/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx
index 680fc41..6ed56f5 100644
--- a/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx
@@ -132,11 +132,11 @@ extern "C" UINT __stdcall CreateLayerLinks(MSIHANDLE handle)
 
                     WriteFile( hfile, lpPathUTF8, strlen(lpPathUTF8) ,&dummy, 0 );
 
-                    delete lpPathUTF8;
+                    delete[] lpPathUTF8;
                 }
             }
 
-            delete lpPathW;
+            delete[] lpPathW;
         }
 
         CloseHandle(hfile);


More information about the Libreoffice-commits mailing list