Skip to content

keyboard: Don't call g_free on uninitialized variable

Will Thompson requested to merge wip/wjt/187-crash-in-get_locale_infos into master

if gnome_parse_locale() fails (e.g. because priv->locale is NULL), lang and country were previously uninitialized. Calling g_free() on an uninitialized variable is a bad idea.

Fixes #187 (closed) (I hope).

Merge request reports