From 091b6ebe398615032493152571a8f42a3fd3cf17 Mon Sep 17 00:00:00 2001 From: SupSuper Date: Mon, 3 Jun 2019 15:02:27 +0100 Subject: WIN32: Fix leaked handles in CreateProcess --- backends/platform/sdl/win32/win32.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3