diff options
author | Dan Winship <danw@src.gnome.org> | 2001-04-18 04:29:40 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-04-18 04:29:40 +0800 |
commit | 72b0983f7ab6f61ec1268da9ba2059c5f07d09ad (patch) | |
tree | a3f5ef64281006c54f1d2f7c891c2c218c1ae4fa | |
parent | 7f65dfa168a26419396e3a882fd2ba8f7080ac2e (diff) | |
download | gsoc2013-evolution-72b0983f7ab6f61ec1268da9ba2059c5f07d09ad.tar.gz gsoc2013-evolution-72b0983f7ab6f61ec1268da9ba2059c5f07d09ad.tar.zst gsoc2013-evolution-72b0983f7ab6f61ec1268da9ba2059c5f07d09ad.zip |
more memory leaks
svn path=/trunk/; revision=9431
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-filter-driver.c | 2 | ||||
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/mail-mt.c | 5 |
4 files changed, 14 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index f319cd813f..f5aab711b8 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2001-04-17 Dan Winship <danw@ximian.com> + + * camel-filter-driver.c (camel_filter_driver_filter_message): Fix + a memory leak in the error case. + 2001-04-16 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-summary.c (summary_rebuild): Don't we diff --git a/camel/camel-filter-driver.c b/camel/camel-filter-driver.c index 08d01da694..464ccc1539 100644 --- a/camel/camel-filter-driver.c +++ b/camel/camel-filter-driver.c @@ -898,6 +898,8 @@ camel_filter_driver_filter_message (CamelFilterDriver *driver, CamelMimeMessage camel_folder_append_message (p->defaultfolder, p->message, p->info, p->ex); } + if (freeinfo) + camel_message_info_free (info); return 0; error: 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); |