Assign slot in JSON import, don't leak it

This commit is contained in:
Christian Dywan 2011-04-06 00:06:16 +02:00
parent e314892818
commit c397c589f5

View file

@ -1521,8 +1521,7 @@ speeddial_new_from_file (const gchar* config,
if (g_str_equal (key, "id"))
{
/* FIXME: leaked string */
slot = g_strdup (val);
katze_assign (slot, g_strdup (val));
dial_id = g_strdup_printf ("Dial %s", slot + 1);
slot_count++;
}