Free the URI when the file was already cached

This commit is contained in:
Alexander Butenko 2009-12-26 14:16:51 +01:00 committed by Christian Dywan
parent 3686061033
commit 138e837457

View file

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