diff options
author | Milan Crha <mcrha@redhat.com> | 2013-11-21 01:31:57 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-11-21 01:32:43 +0800 |
commit | 838e0ec3927f6dea8b00abbd9a6c1d9ce8ff770a (patch) | |
tree | de09e44f0be53be5a6594fd54e200589e3789588 | |
parent | 598a34e693dcbff6e57df4876138971b5ba63748 (diff) | |
download | gsoc2013-evolution-838e0ec3927f6dea8b00abbd9a6c1d9ce8ff770a.tar gsoc2013-evolution-838e0ec3927f6dea8b00abbd9a6c1d9ce8ff770a.tar.gz gsoc2013-evolution-838e0ec3927f6dea8b00abbd9a6c1d9ce8ff770a.tar.bz2 gsoc2013-evolution-838e0ec3927f6dea8b00abbd9a6c1d9ce8ff770a.tar.lz gsoc2013-evolution-838e0ec3927f6dea8b00abbd9a6c1d9ce8ff770a.tar.xz gsoc2013-evolution-838e0ec3927f6dea8b00abbd9a6c1d9ce8ff770a.tar.zst gsoc2013-evolution-838e0ec3927f6dea8b00abbd9a6c1d9ce8ff770a.zip |
Bug #711499 - Failed image download lefts opened file descriptor
-rw-r--r-- | mail/e-http-request.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/e-http-request.c b/mail/e-http-request.c index c12fd76ca1..49cdf6058e 100644 --- a/mail/e-http-request.c +++ b/mail/e-http-request.c @@ -276,6 +276,7 @@ handle_http_request (GSimpleAsyncResult *res, goto cleanup; } else { d (printf ("Failed to load '%s' from cache.\n", uri)); + g_object_unref (stream); } } @@ -375,7 +376,10 @@ handle_http_request (GSimpleAsyncResult *res, send_and_handle_redirection (session, message, NULL); if (!SOUP_STATUS_IS_SUCCESSFUL (message->status_code)) { - g_warning ("Failed to request %s (code %d)", uri, message->status_code); + g_debug ("Failed to request %s (code %d)", uri, message->status_code); + g_object_unref (message); + g_object_unref (session); + g_main_context_unref (context); goto cleanup; } @@ -409,6 +413,9 @@ handle_http_request (GSimpleAsyncResult *res, "Failed to write data to cache stream: %s", error->message); g_clear_error (&error); + g_object_unref (message); + g_object_unref (session); + g_main_context_unref (context); goto cleanup; } } |