diff options
-rw-r--r-- | mail/mail-callbacks.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 79d58dc079..c8256cdc78 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1971,14 +1971,11 @@ flag_messages (FolderBrowser *fb, guint32 mask, guint32 set) uids = g_ptr_array_new (); message_list_foreach (fb->message_list, enumerate_msg, uids); 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], mask, set); - g_free (uids->pdata[i]); - } + camel_folder_free_uids (fb->folder, uids); camel_folder_thaw (fb->folder); - g_ptr_array_free (uids, TRUE); - return i; } |