diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/mail-mt.c | 5 |
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); |