Commit f9e00e64 authored by Christian Hergert's avatar Christian Hergert

shortcuts: contexts hashtable expects interned string

This was both a leak and incorrect because we use the pointer as
the hash key in the hashtable.
parent 36d64ffd
......@@ -352,7 +352,7 @@ dzl_shortcut_theme_add_context (DzlShortcutTheme *self,
g_return_if_fail (name != NULL);
g_hash_table_insert (priv->contexts, g_strdup (name), g_object_ref (context));
g_hash_table_insert (priv->contexts, (gchar *)g_intern_string (name), g_object_ref (context));
DzlShortcutTheme *
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment