aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-12-12 00:41:03 +0800
committerDan Winship <danw@src.gnome.org>2000-12-12 00:41:03 +0800
commitccbbf69f50aa5b7b2ef6fc1baadaf0e9e4323813 (patch)
tree1f62891e02aae6d1d9baf81b0ef9ed132f70ed6d /mail/mail-ops.c
parentb3ce14cf25ba9ea7d7a6f297c1cd479d26f64894 (diff)
downloadgsoc2013-evolution-ccbbf69f50aa5b7b2ef6fc1baadaf0e9e4323813.tar.gz
gsoc2013-evolution-ccbbf69f50aa5b7b2ef6fc1baadaf0e9e4323813.tar.zst
gsoc2013-evolution-ccbbf69f50aa5b7b2ef6fc1baadaf0e9e4323813.zip
clean up the cleanup a bit
* mail-ops.c (do_flag_messages): clean up the cleanup a bit svn path=/trunk/; revision=6906
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 0f03fe10ba..3b23c453a0 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -1195,10 +1195,10 @@ do_flag_messages (gpointer in_data, gpointer op_data, CamelException *ex)
}
mail_tool_camel_lock_up ();
- if (input->flag_all) {
+ if (input->flag_all)
camel_folder_free_uids (input->source, input->uids);
- input->uids = NULL;
- }
+ else
+ g_ptr_array_free (input->uids, TRUE);
camel_folder_thaw (input->source);
mail_tool_camel_lock_down ();
}
@@ -1210,9 +1210,6 @@ cleanup_flag_messages (gpointer in_data, gpointer op_data,
flag_messages_input_t *input = (flag_messages_input_t *) in_data;
camel_object_unref (CAMEL_OBJECT (input->source));
-
- if (input->uids)
- g_ptr_array_free (input->uids, TRUE);
}
static const mail_operation_spec op_flag_messages = {