From: Christian Dywan Date: Tue, 5 Apr 2011 22:06:16 +0000 (+0200) Subject: Assign slot in JSON import, don't leak it X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c397c589f5305b964669fff966acba3097df6a95;p=midori Assign slot in JSON import, don't leak it --- diff --git a/midori/main.c b/midori/main.c index bfd8b655..4b5a4ce6 100644 --- a/midori/main.c +++ b/midori/main.c @@ -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++; }