setup_native/source/win32/customactions/shellextensions/layerlinks.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 5c1c297fa2a0a2e5af0878fbd17dcf21810ac5f6 Author: Julien Nabet <[email protected]> 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); _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
