mirror of
https://github.com/glfw/glfw.git
synced 2025-06-14 19:52:14 +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(buffer);
|
||||||
_glfw_free(attributes);
|
_glfw_free(attributes);
|
||||||
_glfw_free(clauses);
|
_glfw_free(clauses);
|
||||||
|
ImmReleaseContext(window->win32.handle, hIMC);
|
||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
}
|
}
|
||||||
window->preeditText = preeditText;
|
window->preeditText = preeditText;
|
||||||
@ -610,6 +611,7 @@ static GLFWbool getImmPreedit(_GLFWwindow* window)
|
|||||||
_glfw_free(buffer);
|
_glfw_free(buffer);
|
||||||
_glfw_free(attributes);
|
_glfw_free(attributes);
|
||||||
_glfw_free(clauses);
|
_glfw_free(clauses);
|
||||||
|
ImmReleaseContext(window->win32.handle, hIMC);
|
||||||
return GLFW_FALSE;
|
return GLFW_FALSE;
|
||||||
}
|
}
|
||||||
window->preeditAttributeBlocks = blocks;
|
window->preeditAttributeBlocks = blocks;
|
||||||
|
Loading…
Reference in New Issue
Block a user