Fix a small resource handle leak.

This commit is contained in:
Unknown W. Brackets 2016-03-20 14:24:35 -07:00
parent ef1dc583a2
commit ab6dd51d9c

View file

@ -182,6 +182,8 @@ UI::EventReturn CwCheatScreen::OnEditCheatFile(UI::EventParams &params) {
if (!retval) {
ERROR_LOG(COMMON, "Failed creating notepad process");
}
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
#elif !defined(MOBILE_DEVICE)
#if defined(__APPLE__)
cheatFile = "open ";