[evolution] Fix some GSimpleAsyncResult reference leaks.



commit 59ba5e620d20c8db4b02f7ae180536da1b5d09d5
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun May 13 09:32:51 2012 -0400

    Fix some GSimpleAsyncResult reference leaks.

 addressbook/gui/widgets/eab-contact-formatter.c |    2 ++
 e-util/e-file-request.c                         |    2 ++
 e-util/e-stock-request.c                        |    2 ++
 em-format/em-format.c                           |    2 ++
 mail/e-http-request.c                           |    2 ++
 mail/e-mail-request.c                           |    2 ++
 6 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/gui/widgets/eab-contact-formatter.c b/addressbook/gui/widgets/eab-contact-formatter.c
index c436ea8..124e211 100644
--- a/addressbook/gui/widgets/eab-contact-formatter.c
+++ b/addressbook/gui/widgets/eab-contact-formatter.c
@@ -1258,6 +1258,8 @@ eab_contact_formatter_format_contact_async (EABContactFormatter *formatter,
 	g_simple_async_result_run_in_thread (
 		simple, do_start_async_formatter,
 		G_PRIORITY_DEFAULT, cancellable);
+
+	g_object_unref (simple);
 }
 
 static void
diff --git a/e-util/e-file-request.c b/e-util/e-file-request.c
index 08d8682..998fc39 100644
--- a/e-util/e-file-request.c
+++ b/e-util/e-file-request.c
@@ -111,6 +111,8 @@ file_request_send_async (SoupRequest *request,
 	g_simple_async_result_run_in_thread (
 		simple, handle_file_request,
 		G_PRIORITY_DEFAULT, cancellable);
+
+	g_object_unref (simple);
 }
 
 static GInputStream *
diff --git a/e-util/e-stock-request.c b/e-util/e-stock-request.c
index c9a2e5f..0cdc97e 100644
--- a/e-util/e-stock-request.c
+++ b/e-util/e-stock-request.c
@@ -193,6 +193,8 @@ stock_request_send_async (SoupRequest *request,
 	g_simple_async_result_run_in_thread (
 		simple, handle_stock_request,
 		G_PRIORITY_DEFAULT, cancellable);
+
+	g_object_unref (simple);
 }
 
 static GInputStream *
diff --git a/em-format/em-format.c b/em-format/em-format.c
index 23b2fd6..9603dbd 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -2032,6 +2032,8 @@ em_format_parse_async (EMFormat *emf,
 	g_simple_async_result_run_in_thread (
 		simple, emf_start_async_parser,
 		G_PRIORITY_DEFAULT, cancellable);
+
+	g_object_unref (simple);
 }
 
 void
diff --git a/mail/e-http-request.c b/mail/e-http-request.c
index edf1315..93f3cc1 100644
--- a/mail/e-http-request.c
+++ b/mail/e-http-request.c
@@ -474,6 +474,8 @@ http_request_send_async (SoupRequest *request,
 		simple, handle_http_request,
 		G_PRIORITY_DEFAULT, cancellable);
 
+	g_object_unref (simple);
+
 	g_hash_table_destroy (query);
 }
 
diff --git a/mail/e-mail-request.c b/mail/e-mail-request.c
index d36e0cb..961a973 100644
--- a/mail/e-mail-request.c
+++ b/mail/e-mail-request.c
@@ -218,6 +218,8 @@ mail_request_send_async (SoupRequest *request,
 	g_simple_async_result_run_in_thread (
 		simple, handle_mail_request,
 		G_PRIORITY_DEFAULT, cancellable);
+
+	g_object_unref (simple);
 }
 
 static GInputStream *



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