diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp index 93159a7d7e0..aada5b4e68b 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; }