cli_ure/source/native/native_bootstrap.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 11b81c1026c17548bfdbb861ac696f9c6acc628e Author: Julien Nabet <serval2...@yahoo.fr> Date: Tue Apr 29 10:14:12 2014 +0200 Fix memory leaks Change-Id: Id67d5375bedc6e6c10082d9c5ee69d6e932be158 diff --git a/cli_ure/source/native/native_bootstrap.cxx b/cli_ure/source/native/native_bootstrap.cxx index 583dbf3..8be7228 100644 --- a/cli_ure/source/native/native_bootstrap.cxx +++ b/cli_ure/source/native/native_bootstrap.cxx @@ -93,6 +93,7 @@ WCHAR* getPathFromRegistryKey( HKEY hroot, LPCWSTR subKeyName ) if ( RegQueryValueEx( hkey, NULL, NULL, &type, (LPBYTE) data, &size ) != ERROR_SUCCESS ) { RegCloseKey( hkey ); + delete[] data; return NULL; } @@ -287,6 +288,7 @@ extern "C" FARPROC WINAPI delayLoadHook( szLibName = new WCHAR[size]; if (! MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, pdli->szDll, -1, szLibName, size)) { + delete[] szLibName; return 0; } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits