aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-03-25 21:57:49 +0800
committerMilan Crha <mcrha@redhat.com>2013-03-25 21:57:49 +0800
commitad6234ee6c886a063bde635c867622a6ddd73c7c (patch)
treebb153ecaeb16089ac2ffb2eac7270172955a0986 /mail
parent286202150c032176448c00e436c508ad713bcebd (diff)
downloadgsoc2013-evolution-ad6234ee6c886a063bde635c867622a6ddd73c7c.tar
gsoc2013-evolution-ad6234ee6c886a063bde635c867622a6ddd73c7c.tar.gz
gsoc2013-evolution-ad6234ee6c886a063bde635c867622a6ddd73c7c.tar.bz2
gsoc2013-evolution-ad6234ee6c886a063bde635c867622a6ddd73c7c.tar.lz
gsoc2013-evolution-ad6234ee6c886a063bde635c867622a6ddd73c7c.tar.xz
gsoc2013-evolution-ad6234ee6c886a063bde635c867622a6ddd73c7c.tar.zst
gsoc2013-evolution-ad6234ee6c886a063bde635c867622a6ddd73c7c.zip
Bug #696173 - Various memory leaks
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-display.c4
-rw-r--r--mail/e-mail-request.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index 29d4d73bfb..e1b98bb1c1 100644
--- a/mail/e-mail-display.c
+++ b/mail/e-mail-display.c
@@ -623,7 +623,11 @@ toggle_widget_visibility (EAttachmentButton *button,
if (e_attachment_button_get_expanded (button) &&
(e_attachment_store_get_num_attachments (store) == 0))
return;
+ else
+ children = NULL;
}
+
+ g_list_free (children);
}
webkit_dom_html_element_set_hidden (
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;