mirror of
https://github.com/glfw/glfw.git
synced 2025-06-06 15:54:56 +00:00
Fix for cover case where title == window->title
This commit is contained in:
parent
dee8814e3b
commit
2f272930ab
@ -534,9 +534,9 @@ GLFWAPI void glfwSetWindowTitle(GLFWwindow* handle, const char* title)
|
||||
|
||||
char* prev = window->title;
|
||||
window->title = _glfw_strdup(title);
|
||||
_glfw_free(prev);
|
||||
|
||||
_glfw.platform.setWindowTitle(window, title);
|
||||
_glfw_free(prev);
|
||||
}
|
||||
|
||||
GLFWAPI void glfwSetWindowIcon(GLFWwindow* handle,
|
||||
|
Loading…
Reference in New Issue
Block a user