From f642e03d4967c80aaad45475475752264c95de5c Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 15 Jun 2013 08:19:27 -0400 Subject: 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. --- modules/mail/e-mail-shell-view-actions.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/mail/e-mail-shell-view-actions.c') 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 -- cgit v1.2.3