|
Tomas Bzatek |
e740f1f |
Index: daemon/gvfsbackendhttp.c
|
|
Tomas Bzatek |
e740f1f |
===================================================================
|
|
Tomas Bzatek |
e740f1f |
--- daemon/gvfsbackendhttp.c (revision 2129)
|
|
Tomas Bzatek |
e740f1f |
+++ daemon/gvfsbackendhttp.c (revision 2130)
|
|
Tomas Bzatek |
e740f1f |
@@ -346,6 +346,7 @@
|
|
Tomas Bzatek |
e740f1f |
error->message);
|
|
Tomas Bzatek |
e740f1f |
|
|
Tomas Bzatek |
e740f1f |
g_error_free (error);
|
|
Tomas Bzatek |
e740f1f |
+ g_object_unref (stream);
|
|
Tomas Bzatek |
e740f1f |
return;
|
|
Tomas Bzatek |
e740f1f |
}
|
|
Tomas Bzatek |
e740f1f |
|
|
Tomas Bzatek |
e740f1f |
@@ -371,6 +372,8 @@
|
|
Tomas Bzatek |
e740f1f |
msg = soup_message_new_from_uri (SOUP_METHOD_GET, uri);
|
|
Tomas Bzatek |
e740f1f |
soup_uri_free (uri);
|
|
Tomas Bzatek |
e740f1f |
|
|
Tomas Bzatek |
e740f1f |
+ soup_message_body_set_accumulate (msg->response_body, FALSE);
|
|
Tomas Bzatek |
e740f1f |
+
|
|
Tomas Bzatek |
e740f1f |
stream = soup_input_stream_new (op_backend->session_async, msg);
|
|
Tomas Bzatek |
e740f1f |
g_object_unref (msg);
|
|
Tomas Bzatek |
e740f1f |
|
|
Tomas Bzatek |
e740f1f |
Index: daemon/soup-input-stream.c
|
|
Tomas Bzatek |
e740f1f |
===================================================================
|
|
Tomas Bzatek |
e740f1f |
--- daemon/soup-input-stream.c (revision 2129)
|
|
Tomas Bzatek |
e740f1f |
+++ daemon/soup-input-stream.c (revision 2130)
|
|
Tomas Bzatek |
e740f1f |
@@ -714,6 +714,7 @@
|
|
Tomas Bzatek |
e740f1f |
soup_input_stream_done_io (stream);
|
|
Tomas Bzatek |
e740f1f |
|
|
Tomas Bzatek |
e740f1f |
g_simple_async_result_complete (result);
|
|
Tomas Bzatek |
e740f1f |
+ g_object_unref (result);
|
|
Tomas Bzatek |
e740f1f |
}
|
|
Tomas Bzatek |
e740f1f |
|
|
Tomas Bzatek |
e740f1f |
static void
|
|
Tomas Bzatek |
e740f1f |
@@ -748,6 +749,7 @@
|
|
Tomas Bzatek |
e740f1f |
{
|
|
Tomas Bzatek |
e740f1f |
g_simple_async_result_set_op_res_gssize (result, 0);
|
|
Tomas Bzatek |
e740f1f |
g_simple_async_result_complete_in_idle (result);
|
|
Tomas Bzatek |
e740f1f |
+ g_object_unref (result);
|
|
Tomas Bzatek |
e740f1f |
return;
|
|
Tomas Bzatek |
e740f1f |
}
|
|
Tomas Bzatek |
e740f1f |
|
|
Tomas Bzatek |
e740f1f |
@@ -756,6 +758,7 @@
|
|
Tomas Bzatek |
e740f1f |
gsize nread = read_from_leftover (priv, buffer, count);
|
|
Tomas Bzatek |
e740f1f |
g_simple_async_result_set_op_res_gssize (result, nread);
|
|
Tomas Bzatek |
e740f1f |
g_simple_async_result_complete_in_idle (result);
|
|
Tomas Bzatek |
e740f1f |
+ g_object_unref (result);
|
|
Tomas Bzatek |
e740f1f |
return;
|
|
Tomas Bzatek |
e740f1f |
}
|
|
Tomas Bzatek |
e740f1f |
|
|
Tomas Bzatek |
e740f1f |
@@ -804,6 +807,7 @@
|
|
Tomas Bzatek |
e740f1f |
}
|
|
Tomas Bzatek |
e740f1f |
|
|
Tomas Bzatek |
e740f1f |
g_simple_async_result_complete_in_idle (result);
|
|
Tomas Bzatek |
e740f1f |
+ g_object_unref (result);
|
|
Tomas Bzatek |
e740f1f |
}
|
|
Tomas Bzatek |
e740f1f |
|
|
Tomas Bzatek |
e740f1f |
static gboolean
|