mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
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>
This commit is contained in:
parent
aad0baf70d
commit
4a97da3675
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user