mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
[Coverity] Fix some resource leaks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user