Win32: Plug potential memory leaks

This commit is contained in:
Takuro Ashie 2022-04-15 15:01:27 +09:00 committed by Daijiro Fukuda
parent 3e99fcc865
commit b9223f114d

View File

@ -582,6 +582,7 @@ static GLFWbool getImmPreedit(_GLFWwindow* window)
_glfw_free(buffer);
_glfw_free(attributes);
_glfw_free(clauses);
ImmReleaseContext(window->win32.handle, hIMC);
return GLFW_FALSE;
}
window->preeditText = preeditText;
@ -610,6 +611,7 @@ static GLFWbool getImmPreedit(_GLFWwindow* window)
_glfw_free(buffer);
_glfw_free(attributes);
_glfw_free(clauses);
ImmReleaseContext(window->win32.handle, hIMC);
return GLFW_FALSE;
}
window->preeditAttributeBlocks = blocks;