aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-04-04 21:37:13 +0800
committerMilan Crha <mcrha@redhat.com>2014-04-04 21:37:13 +0800
commit4e9f3b3ffb86d56a16194ed3f7fca7e190df5838 (patch)
treea81ced626c38f4128ca82e900e3554aa3b46c75c /e-util
parent0aad073202331606a94d74dabd8a6beb72253a4a (diff)
downloadgsoc2013-evolution-4e9f3b3ffb86d56a16194ed3f7fca7e190df5838.tar
gsoc2013-evolution-4e9f3b3ffb86d56a16194ed3f7fca7e190df5838.tar.gz
gsoc2013-evolution-4e9f3b3ffb86d56a16194ed3f7fca7e190df5838.tar.bz2
gsoc2013-evolution-4e9f3b3ffb86d56a16194ed3f7fca7e190df5838.tar.lz
gsoc2013-evolution-4e9f3b3ffb86d56a16194ed3f7fca7e190df5838.tar.xz
gsoc2013-evolution-4e9f3b3ffb86d56a16194ed3f7fca7e190df5838.tar.zst
gsoc2013-evolution-4e9f3b3ffb86d56a16194ed3f7fca7e190df5838.zip
Fix few more memory leaks
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-file-request.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/e-util/e-file-request.c b/e-util/e-file-request.c
index 3f30a6b826..b2e4fea075 100644
--- a/e-util/e-file-request.c
+++ b/e-util/e-file-request.c
@@ -60,7 +60,7 @@ handle_file_request (GSimpleAsyncResult *res,
stream = g_memory_input_stream_new_from_data (
contents, length, (GDestroyNotify) g_free);
- g_simple_async_result_set_op_res_gpointer (res, stream, NULL);
+ g_simple_async_result_set_op_res_gpointer (res, stream, g_object_unref);
}
}
@@ -130,6 +130,8 @@ file_request_send_finish (SoupRequest *request,
if (!stream) /* We must always return something */
stream = g_memory_input_stream_new ();
+ else
+ g_object_ref (stream);
return stream;
}