Free the URI when the file was already cached
This commit is contained in:
parent
3686061033
commit
138e837457
1 changed files with 3 additions and 0 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue