From: Alexander Butenko Date: Sat, 26 Dec 2009 13:16:51 +0000 (+0100) Subject: Free the URI when the file was already cached X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=138e837457562c0041606e089c7e5510007828dc;p=midori Free the URI when the file was already cached --- diff --git a/extensions/web-cache.c b/extensions/web-cache.c index eb4b88f4..196ab0e7 100644 --- a/extensions/web-cache.c +++ b/extensions/web-cache.c @@ -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),