diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-15 20:19:27 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-15 20:19:27 +0800 |
commit | f642e03d4967c80aaad45475475752264c95de5c (patch) | |
tree | 23b2f4e862f73b86e13f92c433b8315d783b1d2e /libemail-engine | |
parent | 2f43685f591581bc7ad051ac6464799f8e5df5bf (diff) | |
download | gsoc2013-evolution-f642e03d4967c80aaad45475475752264c95de5c.tar.gz gsoc2013-evolution-f642e03d4967c80aaad45475475752264c95de5c.tar.zst gsoc2013-evolution-f642e03d4967c80aaad45475475752264c95de5c.zip |
message_list_get_selected: Give the returned array a free func.
The returned UID array now has a built-in "free" function for its
elements and should be released by callers with g_ptr_array_unref()
rather than em_utils_uids_free() or some equivalent.
Diffstat (limited to 'libemail-engine')
-rw-r--r-- | libemail-engine/mail-ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libemail-engine/mail-ops.c b/libemail-engine/mail-ops.c index 2eb0dae853..64ef0654ae 100644 --- a/libemail-engine/mail-ops.c +++ b/libemail-engine/mail-ops.c @@ -177,7 +177,7 @@ em_filter_folder_element_free (struct _filter_mail_msg *m) g_object_unref (m->source_folder); if (m->source_uids) - em_utils_uids_free (m->source_uids); + g_ptr_array_unref (m->source_uids); if (m->destination) g_object_unref (m->destination); @@ -206,7 +206,7 @@ mail_filter_folder (EMailSession *session, m = mail_msg_new (&em_filter_folder_element_info); m->session = g_object_ref (session); m->source_folder = g_object_ref (source_folder); - m->source_uids = uids; + m->source_uids = g_ptr_array_ref (uids); m->cache = NULL; m->delete = FALSE; @@ -1149,7 +1149,7 @@ transfer_messages_free (struct _transfer_msg *m) g_object_unref (m->session); g_object_unref (m->source); g_free (m->dest_uri); - em_utils_uids_free (m->uids); + g_ptr_array_unref (m->uids); } static MailMsgInfo transfer_messages_info = { @@ -1180,7 +1180,7 @@ mail_transfer_messages (EMailSession *session, m = mail_msg_new (&transfer_messages_info); m->session = g_object_ref (session); m->source = g_object_ref (source); - m->uids = uids; + m->uids = g_ptr_array_ref (uids); m->delete = delete_from_source; m->dest_uri = g_strdup (dest_uri); m->dest_flags = dest_flags; |