diff options
author | SupSuper | 2019-06-03 15:02:27 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-06-03 20:17:24 +0300 |
commit | 091b6ebe398615032493152571a8f42a3fd3cf17 (patch) | |
tree | 3c5734ee7826e3f6e228dd57950e7c4daddaa3c0 | |
parent | b1bd75a0838e1bf5ba87a70a4490b4b6265ef16b (diff) | |
download | scummvm-rg350-091b6ebe398615032493152571a8f42a3fd3cf17.tar.gz scummvm-rg350-091b6ebe398615032493152571a8f42a3fd3cf17.tar.bz2 scummvm-rg350-091b6ebe398615032493152571a8f42a3fd3cf17.zip |
WIN32: Fix leaked handles in CreateProcess
-rw-r--r-- | backends/platform/sdl/win32/win32.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp index 93159a7d7e..aada5b4e68 100644 --- a/backends/platform/sdl/win32/win32.cpp +++ b/backends/platform/sdl/win32/win32.cpp @@ -145,8 +145,11 @@ bool OSystem_Win32::displayLogFile() { NULL, &startupInfo, &processInformation); - if (result) + if (result) { + CloseHandle(processInformation.hProcess); + CloseHandle(processInformation.hThread); return true; + } return false; } |