aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-04-18 04:29:40 +0800
committerDan Winship <danw@src.gnome.org>2001-04-18 04:29:40 +0800
commit72b0983f7ab6f61ec1268da9ba2059c5f07d09ad (patch)
treea3f5ef64281006c54f1d2f7c891c2c218c1ae4fa /mail
parent7f65dfa168a26419396e3a882fd2ba8f7080ac2e (diff)
downloadgsoc2013-evolution-72b0983f7ab6f61ec1268da9ba2059c5f07d09ad.tar.gz
gsoc2013-evolution-72b0983f7ab6f61ec1268da9ba2059c5f07d09ad.tar.zst
gsoc2013-evolution-72b0983f7ab6f61ec1268da9ba2059c5f07d09ad.zip
more memory leaks
svn path=/trunk/; revision=9431
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-mt.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 148338c527..87291536a6 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-17 Dan Winship <danw@ximian.com>
+
+ * mail-mt.c (mail_msg_check_error): Fix a memory leak.
+
2001-04-16 Ettore Perazzoli <ettore@ximian.com>
* importers/Makefile.am (INCLUDES): Add `$(EXTRA_GNOME_CFLAGS)'
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 9c04ca38ef..a4c924cab6 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -186,9 +186,10 @@ void mail_msg_check_error(void *msg)
if (m->ops->describe_msg)
what = m->ops->describe_msg(m, FALSE);
- if (what)
+ if (what) {
text = g_strdup_printf(_("Error while '%s':\n%s"), what, camel_exception_get_description(&m->ex));
- else
+ g_free (what);
+ } else
text = g_strdup_printf(_("Error while performing operation:\n%s"), camel_exception_get_description(&m->ex));
gd = (GnomeDialog *)gnome_error_dialog(text);