diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-04-29 10:03:18 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-04-29 10:03:18 +0200 |
commit | 5c1c297fa2a0a2e5af0878fbd17dcf21810ac5f6 (patch) | |
tree | 1fefab8835bfec13c8241c721d2bdf004688e353 /setup_native | |
parent | Less intrusive --disable-database-connectivity change for sw (diff) | |
download | core-5c1c297fa2a0a2e5af0878fbd17dcf21810ac5f6.tar.gz core-5c1c297fa2a0a2e5af0878fbd17dcf21810ac5f6.zip |
Mismatch alloc/dealloc
Cppcheck can't detect these cases for the moment
See http://sourceforge.net/apps/trac/cppcheck/ticket/5740
Change-Id: Iac3b5bdea8078b02d78afb53bb8afcb2673b4316
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); |