From 89e63ef67235d231d242f018894295a6cb38cfc3 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 26 Feb 2023 08:29:56 +0800 Subject: [PATCH] Bug 798754 - Build fails with gcc 13 and glib > 2.76, ter --- libgnucash/gnc-module/gnc-module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgnucash/gnc-module/gnc-module.c b/libgnucash/gnc-module/gnc-module.c index bef6906785..0856c25666 100644 --- a/libgnucash/gnc-module/gnc-module.c +++ b/libgnucash/gnc-module/gnc-module.c @@ -107,8 +107,8 @@ gnc_module_system_search_dirs(void) case G_SEARCHPATH_SEPARATOR: if (!escchar) { - list = g_list_append(list, token->str); - g_string_free(token, TRUE); + char *token_str = g_string_free (token, FALSE); + list = g_list_append (list, token_str); token = g_string_new(NULL); } else