]> spindle.queued.net Git - midori/commitdiff
Don't leak the filename in katze_load_cached_icon
authorChristian Dywan <christian@twotoasts.de>
Sun, 5 Sep 2010 20:19:11 +0000 (22:19 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 6 Sep 2010 01:03:07 +0000 (03:03 +0200)
katze/katze-utils.c

index 8e98ef4366f7241c898dac0f2c652a6f768c79af..b43869d62857b653c3394179ab80140b5cde76d5 100644 (file)
@@ -1526,6 +1526,7 @@ katze_load_cached_icon (const gchar* uri,
         g_free (checksum);
         path = g_build_filename (g_get_user_cache_dir (), PACKAGE_NAME,
                                  "icons", filename, NULL);
+        g_free (filename);
         if ((icon = gdk_pixbuf_new_from_file_at_size (path, 16, 16, NULL)))
         {
             g_free (path);