aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-filter-driver.c5
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) {