[Scummvm-git-logs] scummvm master -> 091b6ebe398615032493152571a8f42a3fd3cf17

bluegr bluegr at gmail.com
Mon Jun 3 19:17:28 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
091b6ebe39 WIN32: Fix leaked handles in CreateProcess


Commit: 091b6ebe398615032493152571a8f42a3fd3cf17
    https://github.com/scummvm/scummvm/commit/091b6ebe398615032493152571a8f42a3fd3cf17
Author: SupSuper (supsuper at gmail.com)
Date: 2019-06-03T20:17:24+03:00

Commit Message:
WIN32: Fix leaked handles in CreateProcess

Changed paths:
    backends/platform/sdl/win32/win32.cpp


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





More information about the Scummvm-git-logs mailing list