X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=thread.c;h=f64dc3fddf51e55f120c8b7b40a5030533d86ae4;hp=57b1bcbfbc1c60c5f78806ccccac312c14e947b2;hb=b3cb6ed8d36c550a2e589910ce51bbc8352ff57c;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/thread.c b/thread.c index 57b1bcb..f64dc3f 100644 --- a/thread.c +++ b/thread.c @@ -346,7 +346,7 @@ static LIST *make_subject_list (THREAD * cur, time_t * dateptr) break; } if (!curlist || rc > 0) { - newlist = mem_calloc (1, sizeof (LIST)); + newlist = p_new(LIST, 1); newlist->data = env->real_subj; if (oldlist) { newlist->next = oldlist->next; @@ -549,7 +549,7 @@ THREAD *mutt_sort_subthreads (THREAD * thread, int init) top = thread; - array = mem_calloc ((array_size = 256), sizeof (THREAD *)); + array = p_new(THREAD *, (array_size = 256)); while (1) { if (init || !thread->sort_key) { thread->sort_key = NULL; @@ -758,7 +758,7 @@ void mutt_sort_threads (CONTEXT * ctx, int init) else { new = (option (OPTDUPTHREADS) ? thread : NULL); - thread = mem_calloc (1, sizeof (THREAD)); + thread = p_new(THREAD, 1); thread->message = cur; thread->check_subject = 1; cur->thread = thread; @@ -839,7 +839,7 @@ void mutt_sort_threads (CONTEXT * ctx, int init) break; if ((new = hash_find (ctx->thread_hash, ref->data)) == NULL) { - new = mem_calloc (1, sizeof (THREAD)); + new = p_new(THREAD, 1); hash_insert (ctx->thread_hash, ref->data, new, 1); } else {