diff --git a/linux/devicelocale_plugin.cc b/linux/devicelocale_plugin.cc index c484d53..b63d9da 100644 --- a/linux/devicelocale_plugin.cc +++ b/linux/devicelocale_plugin.cc @@ -49,7 +49,6 @@ static gchar *get_category_locale(int category) bool no_locale = locale == nullptr || strncmp(locale, "LC_", sizeof("LC_") - 1) == 0; if (no_locale) { - g_free(locale); return nullptr; } else { return locale;