mirror of
https://github.com/glfw/glfw.git
synced 2025-06-14 11:42:16 +00:00
Win32: Plug potential memory leaks
This commit is contained in:
parent
3e99fcc865
commit
b9223f114d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user