aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}