aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 35501453fc..79d58dc079 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -2060,8 +2060,10 @@ mark_all_as_seen (BonoboUIComponent *uih, void *user_data, const char *path)
uids = camel_folder_get_uids (fb->folder);
camel_folder_freeze (fb->folder);
- for (i = 0; i < uids->len; i++)
+ for (i = 0; i < uids->len; i++) {
camel_folder_set_message_flags (fb->folder, uids->pdata[i], CAMEL_MESSAGE_SEEN, ~0);
+ g_free (uids->pdata[i]);
+ }
camel_folder_thaw (fb->folder);
g_ptr_array_free (uids, TRUE);
}