diff options
author | Milan Crha <mcrha@redhat.com> | 2013-03-25 21:57:01 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-03-25 21:57:01 +0800 |
commit | 4b03f11c4c795e14d4041bb79048521f12891ee4 (patch) | |
tree | 4287b0f6a5a629cb2fcd8e8e6b6bc6c80a36b219 /mail/e-mail-request.c | |
parent | 1c35d94851adfab4340464376118eea4d964fc8d (diff) | |
download | gsoc2013-evolution-4b03f11c4c795e14d4041bb79048521f12891ee4.tar.gz gsoc2013-evolution-4b03f11c4c795e14d4041bb79048521f12891ee4.tar.zst gsoc2013-evolution-4b03f11c4c795e14d4041bb79048521f12891ee4.zip |
Bug #696173 - Various memory leaks
Diffstat (limited to 'mail/e-mail-request.c')
-rw-r--r-- | mail/e-mail-request.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/e-mail-request.c b/mail/e-mail-request.c index e00cc4d7d9..a4e229f94f 100644 --- a/mail/e-mail-request.c +++ b/mail/e-mail-request.c @@ -196,7 +196,7 @@ handle_mail_request (GSimpleAsyncResult *res, stream = g_memory_input_stream_new_from_data ( (gchar *) ba->data, ba->len, NULL); - g_simple_async_result_set_op_res_gpointer (res, stream, NULL); + g_simple_async_result_set_op_res_gpointer (res, stream, g_object_unref); } static GInputStream * @@ -278,7 +278,7 @@ exit: stream = get_empty_image_stream ( (gsize *) &request->priv->content_length); - g_simple_async_result_set_op_res_gpointer (res, stream, NULL); + g_simple_async_result_set_op_res_gpointer (res, stream, g_object_unref); } static void @@ -384,6 +384,8 @@ mail_request_send_finish (SoupRequest *request, if (stream == NULL) { /* We must always return something */ stream = g_memory_input_stream_new (); + } else { + g_object_ref (stream); } return stream; |