From 4a97da36751d26f466c7e847b6d106ef7724b413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 4 Mar 2023 13:06:06 +0100 Subject: [PATCH] cally: Use g_string_free() return value glib now warns if the return value is not used, so use the API as intended instead of assigning the character data separately before freeing the GString. Part-of: --- clutter/clutter/cally/cally-util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clutter/clutter/cally/cally-util.c b/clutter/clutter/cally/cally-util.c index 16360d185..1051692c9 100644 --- a/clutter/clutter/cally/cally-util.c +++ b/clutter/clutter/cally/cally-util.c @@ -224,8 +224,7 @@ atk_key_event_from_clutter_event_key (ClutterKeyEvent *clutter_event, new = g_string_new (""); new = g_string_insert_unichar (new, 0, key_unichar); - atk_event->string = new->str; - g_string_free (new, FALSE); + atk_event->string = g_string_free (new, FALSE); } else atk_event->string = NULL;