[Coverity] Fix some resource leaks

This commit is contained in:
baldurk
2016-05-01 14:37:28 +02:00
parent e2d2ff80e3
commit bdee617d80
+4
View File
@@ -311,6 +311,8 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst,
MultiByteToWideChar(CP_UTF8, 0, originalpath.c_str(), -1, conv, int(originalpath.size()+1));
wide_path = conv;
delete[] conv;
}
// Wait for UI to exit
@@ -416,6 +418,8 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst,
CloseHandle(pi.hThread);
}
delete[] paramsAlloc;
return 0;
}