]> spindle.queued.net Git - midori/commitdiff
Assign slot in JSON import, don't leak it
authorChristian Dywan <christian@twotoasts.de>
Tue, 5 Apr 2011 22:06:16 +0000 (00:06 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 5 Apr 2011 22:06:16 +0000 (00:06 +0200)
midori/main.c

index bfd8b6558da6f28b3cdbb466971da9c015fb26d5..4b5a4ce68885a1f615dbd62e8cd9fe310b370ba3 100644 (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++;
             }