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:
Eberhard Beilharz 2023-10-16 18:24:56 +02:00
parent b0dd74ca59
commit 0eb5065bf4
No known key found for this signature in database
GPG key ID: E9140597606020D3

View file

@ -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);
}