From 9311500db857b2427322733ef4b20cedca00ad9e Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 15 Jun 2013 08:24:47 -0400 Subject: Avoid em_utils_uids_free() in other places. --- mail/em-utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail/em-utils.c') diff --git a/mail/em-utils.c b/mail/em-utils.c index 16a0d677ae..8d3a25758e 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -869,6 +869,7 @@ em_utils_selection_get_uidlist (GtkSelectionData *selection_data, return; items = g_ptr_array_new (); + g_ptr_array_set_free_func (items, (GDestroyNotify) g_free); inptr = (gchar *) data; inend = (gchar *) (data + length); @@ -884,7 +885,7 @@ em_utils_selection_get_uidlist (GtkSelectionData *selection_data, } if (items->len == 0) { - g_ptr_array_free (items, TRUE); + g_ptr_array_unref (items); return; } @@ -927,7 +928,7 @@ em_utils_selection_get_uidlist (GtkSelectionData *selection_data, } g_hash_table_destroy (uids_by_uri); - em_utils_uids_free (items); + g_ptr_array_unref (items); if (local_error) g_propagate_error (error, local_error); -- cgit