From 2016f37757aecda5643f077cc6cddafbe2bdb4b5 Mon Sep 17 00:00:00 2001 From: dantmnf <2252500+dantmnf@users.noreply.github.com> Date: Mon, 24 Mar 2025 22:42:54 +0800 Subject: [PATCH] fix: handle leak https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/12199#issuecomment-2746840742 --- src/MaaCore/Controller/Platform/Win32IO.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MaaCore/Controller/Platform/Win32IO.cpp b/src/MaaCore/Controller/Platform/Win32IO.cpp index e35ecf4418..78466b2c9b 100644 --- a/src/MaaCore/Controller/Platform/Win32IO.cpp +++ b/src/MaaCore/Controller/Platform/Win32IO.cpp @@ -542,6 +542,7 @@ std::string asst::IOHandlerWin32::read(unsigned timeout_sec) } } + CloseHandle(pipeov.hEvent); return pipe_buffer.get(); }