[evolution-ews/gnome-2-28] Fix memory leak during autodiscover (as part of Bug #665801)
- From: Punit Jain <jpunit src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-2-28] Fix memory leak during autodiscover (as part of Bug #665801)
- Date: Wed, 14 Mar 2012 06:34:52 +0000 (UTC)
commit 90834f2f1694b5496c967d76c66e838868d13736
Author: Milan Crha <mcrha redhat com>
Date: Thu Feb 9 15:18:52 2012 +0100
Fix memory leak during autodiscover (as part of Bug #665801)
src/server/e-ews-connection.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index d655cd8..67cda45 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -1061,7 +1061,6 @@ static void autodiscover_done_cb (GObject *cnc, GAsyncResult *res,
xmlOutputBufferClose (ad->buf);
ad->cb (urls, ad->cbdata, error);
- g_object_unref (G_OBJECT (ad->cnc));
g_free (ad);
}
@@ -1186,9 +1185,9 @@ autodiscover_response_cb (SoupSession *session, SoupMessage *msg, gpointer data)
}
}
-
g_simple_async_result_set_op_res_gpointer (ad->simple, urls, NULL);
g_simple_async_result_complete_in_idle (ad->simple);
+ g_object_unref (ad->simple);
return;
failed:
@@ -1207,6 +1206,7 @@ failed:
want the *first* error */
g_simple_async_result_set_from_error (ad->simple, error);
g_simple_async_result_complete_in_idle (ad->simple);
+ g_object_unref (ad->simple);
}
static void post_restarted (SoupMessage *msg, gpointer data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]