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
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue