From 2f272930abb740cb1a0a8bbdd872011388f41009 Mon Sep 17 00:00:00 2001 From: Doug Binks Date: Sun, 11 Feb 2024 17:07:19 +0000 Subject: [PATCH] Fix for cover case where title == window->title --- src/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.c b/src/window.c index bc24582c..cf1b0e71 100644 --- a/src/window.c +++ b/src/window.c @@ -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,