Commit 0c1c5570 authored by Andrea Azzarone's avatar Andrea Azzarone 🚴 Committed by Robert Ancell

region: Fix double-free when closing the input chooser dialog

Fixes: #225
parent 99f1f8e1
Pipeline #34936 passed with stages
in 4 minutes and 14 seconds
......@@ -953,7 +953,7 @@ get_locale_infos (GtkWidget *chooser)
info->name = g_strdup (C_("Input Source", "Other"));
info->unaccented_name = g_strdup ("");
info->untranslated_name = g_strdup ("");
g_hash_table_replace (priv->locales, info->id, info);
g_hash_table_replace (priv->locales, g_strdup (info->id), info);
info->layout_rows_by_id = g_hash_table_new_full (g_str_hash, g_str_equal,
NULL, g_object_unref);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment