From 4713393d8b19b2a2eca586389f8cc7c963a42156 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 21 Sep 2000 20:36:48 +0000 Subject: Fixed some memory leakage. Call free_recipients() so we don't leak memory. 2000-09-21 Jeffrey Stedfast * mail-format.c (mail_generate_reply): Fixed some memory leakage. Call free_recipients() so we don't leak memory. svn path=/trunk/; revision=5542 --- mail/mail-ops.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 98adc3ca3a..6d049fdfe1 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -5,6 +5,7 @@ * Author : * Dan Winship * Peter Williams + * Jeffrey Stedfast * * Copyright 2000 Helix Code, Inc. (http://www.helixcode.com) * @@ -62,15 +63,15 @@ describe_fetch_mail (gpointer in_data, gboolean gerund) { fetch_mail_input_t *input = (fetch_mail_input_t *) in_data; char *name; - + /*source = camel_session_get_store (session, input->source_url, NULL); *if (source) { * name = camel_service_get_name (CAMEL_SERVICE (source), FALSE); * camel_object_unref (CAMEL_OBJECT (source)); *} else */ - name = input->source_url; - + name = input->source_url; + if (gerund) return g_strdup_printf (_("Fetching email from %s"), name); else @@ -82,23 +83,23 @@ setup_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex) { fetch_mail_input_t *input = (fetch_mail_input_t *) in_data; fetch_mail_data_t *data = (fetch_mail_data_t *) op_data; - + if (!input->source_url) { camel_exception_set (ex, CAMEL_EXCEPTION_INVALID_PARAM, _("You have no remote mail source configured " "to fetch mail from.")); return; } - + if (input->destination == NULL) return; - + if (!CAMEL_IS_FOLDER (input->destination)) { camel_exception_set (ex, CAMEL_EXCEPTION_INVALID_PARAM, _("Bad folder passed to fetch_mail")); return; } - + data->empty = FALSE; camel_object_ref (CAMEL_OBJECT (input->destination)); } -- cgit v1.2.3