[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - setup_native/source

Julien Nabet serval2412 at yahoo.fr
Tue Apr 29 03:37:20 PDT 2014


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

New commits:
commit 456b64a1080b4cc88147174ccb85185bedfe3516
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
    Reviewed-on: https://gerrit.libreoffice.org/9193
    Tested-by: David Tardon <dtardon at redhat.com>
    Reviewed-by: David Tardon <dtardon at redhat.com>

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