mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-06 14:07:32 +00:00
chore(linux): Unnecessary to check for NULL before calling g_free
`g_free` will return if the parameter is NULL, so we don't have to check for that. See glib [documentation](https://docs.gtk.org/glib/func.free.html).
This commit is contained in:
parent
b0dd74ca59
commit
0eb5065bf4
1 changed files with 1 additions and 2 deletions
|
|
@ -75,8 +75,7 @@ void free_cust_kbd(gpointer data) {
|
|||
|
||||
g_free(kbd_data->kb_id_with_lang);
|
||||
g_free(kbd_data->lang->id);
|
||||
if (kbd_data->lang->name)
|
||||
g_free(kbd_data->lang->name);
|
||||
g_free(kbd_data->lang->name);
|
||||
g_free(kbd_data->lang);
|
||||
g_free(kbd_data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue