diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-04-29 10:03:18 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-04-30 14:57:01 +0200 |
commit | 14e9cf1170a0455598450cf83dcf78f9951879a0 (patch) | |
tree | c1e70933a5e77a757d064cd5c01fb0c79374ed61 /setup_native | |
parent | d7a9b6ca6526d9876680dacb686d1f7b30c1af95 (diff) |
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@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/source/win32/customactions/shellextensions/layerlinks.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx b/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx index 680fc410d592..6ed56f5ce33d 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); |