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_new ("");
|
||||||
new = g_string_insert_unichar (new, 0, key_unichar);
|
new = g_string_insert_unichar (new, 0, key_unichar);
|
||||||
atk_event->string = new->str;
|
atk_event->string = g_string_free (new, FALSE);
|
||||||
g_string_free (new, FALSE);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
atk_event->string = NULL;
|
atk_event->string = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user