Assign slot in JSON import, don't leak it
This commit is contained in:
parent
e314892818
commit
c397c589f5
1 changed files with 1 additions and 2 deletions
|
@ -1521,8 +1521,7 @@ speeddial_new_from_file (const gchar* config,
|
||||||
|
|
||||||
if (g_str_equal (key, "id"))
|
if (g_str_equal (key, "id"))
|
||||||
{
|
{
|
||||||
/* FIXME: leaked string */
|
katze_assign (slot, g_strdup (val));
|
||||||
slot = g_strdup (val);
|
|
||||||
dial_id = g_strdup_printf ("Dial %s", slot + 1);
|
dial_id = g_strdup_printf ("Dial %s", slot + 1);
|
||||||
slot_count++;
|
slot_count++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue