Fix for cover case where title == window->title

This commit is contained in:
Doug Binks 2024-02-11 17:07:19 +00:00
parent dee8814e3b
commit 2f272930ab

View File

@ -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,