From c397c589f5305b964669fff966acba3097df6a95 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 6 Apr 2011 00:06:16 +0200 Subject: [PATCH] Assign slot in JSON import, don't leak it --- midori/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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++; } -- 2.39.5