]> spindle.queued.net Git - midori/commitdiff
Free the URI when the file was already cached
authorAlexander Butenko <a.butenka@gmail.com>
Sat, 26 Dec 2009 13:16:51 +0000 (14:16 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 26 Dec 2009 14:20:57 +0000 (15:20 +0100)
extensions/web-cache.c

index eb4b88f41ac8729577abfc8121e4d5dbbdcc4235..196ab0e712826e29c3ce1e73555f165c1428c978 100644 (file)
@@ -277,7 +277,10 @@ web_cache_mesage_got_headers_cb (SoupMessage* msg,
     {
         /* g_debug ("updating cache: %s -> %s", uri, filename); */
         if (!web_cache_tmp_prepare (filename))
+        {
+            g_free (uri);
             return;
+        }
         web_cache_save_headers (msg, filename);
         g_signal_connect_data (msg, "got-chunk",
             G_CALLBACK (web_cache_message_got_chunk_cb),