[evolution] Don't unref GAsyncResult in "finish" functions.



commit ec64c08d269accf0a30b21e2f7c535c196e36400
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon May 14 09:00:42 2012 -0400

    Don't unref GAsyncResult in "finish" functions.

 e-util/e-file-request.c  |    1 -
 e-util/e-stock-request.c |    1 -
 mail/e-http-request.c    |    1 -
 mail/e-mail-request.c    |    1 -
 4 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/e-util/e-file-request.c b/e-util/e-file-request.c
index 998fc39..4b84aad 100644
--- a/e-util/e-file-request.c
+++ b/e-util/e-file-request.c
@@ -123,7 +123,6 @@ file_request_send_finish (SoupRequest *request,
 	GInputStream *stream;
 
 	stream = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result));
-	g_object_unref (result);
 
 	/* Reset the stream before passing it back to webkit */
 	if (stream && G_IS_SEEKABLE (stream))
diff --git a/e-util/e-stock-request.c b/e-util/e-stock-request.c
index 0cdc97e..5a1fbc9 100644
--- a/e-util/e-stock-request.c
+++ b/e-util/e-stock-request.c
@@ -205,7 +205,6 @@ stock_request_send_finish (SoupRequest *request,
 	GInputStream *stream;
 
 	stream = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result));
-	g_object_unref (result);
 
 	/* Reset the stream before passing it back to webkit */
 	if (stream && G_IS_SEEKABLE (stream))
diff --git a/mail/e-http-request.c b/mail/e-http-request.c
index 93f3cc1..cc2ec62 100644
--- a/mail/e-http-request.c
+++ b/mail/e-http-request.c
@@ -487,7 +487,6 @@ http_request_send_finish (SoupRequest *request,
 	GInputStream *stream;
 
 	stream = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result));
-	g_object_unref (result);
 
 	/* Reset the stream before passing it back to webkit */
 	if (stream && G_IS_SEEKABLE (stream))
diff --git a/mail/e-mail-request.c b/mail/e-mail-request.c
index 961a973..7522bc5 100644
--- a/mail/e-mail-request.c
+++ b/mail/e-mail-request.c
@@ -230,7 +230,6 @@ mail_request_send_finish (SoupRequest *request,
 	GInputStream *stream;
 
 	stream = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result));
-	g_object_unref (result);
 
 	/* Reset the stream before passing it back to webkit */
 	if (stream && G_IS_SEEKABLE (stream))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]