diff --git a/renderdoccmd/renderdoccmd_win32.cpp b/renderdoccmd/renderdoccmd_win32.cpp index 0d0b443da..40067f156 100644 --- a/renderdoccmd/renderdoccmd_win32.cpp +++ b/renderdoccmd/renderdoccmd_win32.cpp @@ -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; }