diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-13 02:49:46 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-13 02:49:46 +0800 |
commit | c33b6dc7e71b994b3297babee61bd989b6a1aef2 (patch) | |
tree | e87f666a0931e98eac58892a4b29ed1b5697d0de /camel | |
parent | 0ce61e5586e7d4a0b84a1626bd84183d4f25a835 (diff) | |
download | gsoc2013-evolution-c33b6dc7e71b994b3297babee61bd989b6a1aef2.tar gsoc2013-evolution-c33b6dc7e71b994b3297babee61bd989b6a1aef2.tar.gz gsoc2013-evolution-c33b6dc7e71b994b3297babee61bd989b6a1aef2.tar.bz2 gsoc2013-evolution-c33b6dc7e71b994b3297babee61bd989b6a1aef2.tar.lz gsoc2013-evolution-c33b6dc7e71b994b3297babee61bd989b6a1aef2.tar.xz gsoc2013-evolution-c33b6dc7e71b994b3297babee61bd989b6a1aef2.tar.zst gsoc2013-evolution-c33b6dc7e71b994b3297babee61bd989b6a1aef2.zip |
Unref the message info.
2001-09-12 Jeffrey Stedfast <fejj@ximian.com>
* camel-filter-driver.c (camel_filter_driver_filter_mbox): Unref
the message info.
svn path=/trunk/; revision=12776
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-filter-driver.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 564238a3bc..abc694efa9 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2001-09-12 Jeffrey Stedfast <fejj@ximian.com> + + * camel-filter-driver.c (camel_filter_driver_filter_mbox): Unref + the message info. + 2001-09-10 <NotZed@Ximian.com> * providers/local/camel-maildir-store.c (get_folder_info): Pass in diff --git a/camel/camel-filter-driver.c b/camel/camel-filter-driver.c index 181cbed9a9..bfbb93c6f9 100644 --- a/camel/camel-filter-driver.c +++ b/camel/camel-filter-driver.c @@ -636,7 +636,6 @@ camel_filter_driver_filter_mbox (CamelFilterDriver *driver, const char *mbox, co int i = 0; struct stat st; int status; - CamelMessageInfo *info; off_t last = 0; fd = open (mbox, O_RDONLY); @@ -658,6 +657,7 @@ camel_filter_driver_filter_mbox (CamelFilterDriver *driver, const char *mbox, co source_url = g_strdup_printf ("file://%s", mbox); while (camel_mime_parser_step (mp, 0, 0) == HSCAN_FROM) { + CamelMessageInfo *info; CamelMimeMessage *msg; int pc = 0; @@ -682,6 +682,7 @@ camel_filter_driver_filter_mbox (CamelFilterDriver *driver, const char *mbox, co camel_object_unref (CAMEL_OBJECT (msg)); if (camel_exception_is_set (ex) || status == -1) { report_status (driver, CAMEL_FILTER_STATUS_END, 100, _("Failed on message %d"), i); + camel_message_info_free (info); goto fail; } @@ -689,6 +690,8 @@ camel_filter_driver_filter_mbox (CamelFilterDriver *driver, const char *mbox, co /* skip over the FROM_END state */ camel_mime_parser_step (mp, 0, 0); + + camel_message_info_free (info); } if (p->defaultfolder) { |