aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl
diff options
context:
space:
mode:
authorSupSuper2019-06-03 15:02:27 +0100
committerFilippos Karapetis2019-06-03 20:17:24 +0300
commit091b6ebe398615032493152571a8f42a3fd3cf17 (patch)
tree3c5734ee7826e3f6e228dd57950e7c4daddaa3c0 /backends/platform/sdl
parentb1bd75a0838e1bf5ba87a70a4490b4b6265ef16b (diff)
downloadscummvm-rg350-091b6ebe398615032493152571a8f42a3fd3cf17.tar.gz
scummvm-rg350-091b6ebe398615032493152571a8f42a3fd3cf17.tar.bz2
scummvm-rg350-091b6ebe398615032493152571a8f42a3fd3cf17.zip
WIN32: Fix leaked handles in CreateProcess
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r--backends/platform/sdl/win32/win32.cpp5
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;
}