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 /modules | |
parent | 2f43685f591581bc7ad051ac6464799f8e5df5bf (diff) | |
download | gsoc2013-evolution-f642e03d4967c80aaad45475475752264c95de5c.tar gsoc2013-evolution-f642e03d4967c80aaad45475475752264c95de5c.tar.gz gsoc2013-evolution-f642e03d4967c80aaad45475475752264c95de5c.tar.bz2 gsoc2013-evolution-f642e03d4967c80aaad45475475752264c95de5c.tar.lz gsoc2013-evolution-f642e03d4967c80aaad45475475752264c95de5c.tar.xz 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 'modules')
-rw-r--r-- | modules/mail/e-mail-shell-view-actions.c | 8 | ||||
-rw-r--r-- | modules/mail/e-mail-shell-view-private.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c index 4056a7b08f..c8bec966d2 100644 --- a/modules/mail/e-mail-shell-view-actions.c +++ b/modules/mail/e-mail-shell-view-actions.c @@ -1007,7 +1007,7 @@ action_mail_label_cb (GtkToggleAction *action, camel_folder_thaw (folder); g_clear_object (&folder); - em_utils_uids_free (uids); + g_ptr_array_unref (uids); } static void @@ -1080,7 +1080,7 @@ action_mail_label_new_cb (GtkAction *action, folder, uids->pdata[ii], label_tag, TRUE); g_clear_object (&folder); - em_utils_uids_free (uids); + g_ptr_array_unref (uids); g_free (label_tag); @@ -1143,7 +1143,7 @@ action_mail_label_none_cb (GtkAction *action, } g_clear_object (&folder); - em_utils_uids_free (uids); + g_ptr_array_unref (uids); } static void @@ -2390,7 +2390,7 @@ e_mail_shell_view_update_popup_labels (EMailShellView *mail_shell_view) ii++; } - em_utils_uids_free (uids); + g_ptr_array_unref (uids); } void diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c index 16971771de..61cfd8b7ac 100644 --- a/modules/mail/e-mail-shell-view-private.c +++ b/modules/mail/e-mail-shell-view-private.c @@ -1086,7 +1086,7 @@ e_mail_shell_view_update_sidebar (EMailShellView *mail_shell_view) num_visible), num_visible); } - em_utils_uids_free (uids); + g_ptr_array_unref (uids); uid = camel_service_get_uid (CAMEL_SERVICE (parent_store)); store_is_local = (g_strcmp0 (uid, E_MAIL_SESSION_LOCAL_UID) == 0); |