diff options
author | Florian Müllner <fmuellner@gnome.org> | 2023-03-04 13:06:06 +0100 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2023-03-04 19:31:52 +0000 |
commit | 4a97da36751d26f466c7e847b6d106ef7724b413 (patch) | |
tree | ef81305531256eee179a5a4d43dcc8f93b52093f | |
parent | aad0baf70d15164d4049dabf7928c80381b99266 (diff) | |
download | mutter-4a97da36751d26f466c7e847b6d106ef7724b413.tar.gz |
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2889>
-rw-r--r-- | clutter/clutter/cally/cally-util.c | 3 |
1 files changed, 1 insertions, 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; |