X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=history.c;h=215a0ef793efced669c0d764a0954344d11d27f2;hp=66559c05ad9749f8fb607439a501be8cf3d2db71;hb=c22c84b23ab59c81ccd397c992b1c4adbbddeb80;hpb=4eaac5c4a87b84ea9ec0668b4e088ac27e2d1106 diff --git a/history.c b/history.c index 66559c0..215a0ef 100644 --- a/history.c +++ b/history.c @@ -11,9 +11,10 @@ # include "config.h" #endif +#include + #include "mutt.h" #include "history.h" -#include "lib/mem.h" /* global vars used for the string-history routines */ @@ -33,13 +34,13 @@ static void init_history (struct history *h) if (OldSize) { if (h->hist) { for (i = 0; i < OldSize; i++) - mem_free (&h->hist[i]); - mem_free (&h->hist); + p_delete(&h->hist[i]); + p_delete(&h->hist); } } if (HistSize) - h->hist = mem_calloc (HistSize, sizeof (char *)); + h->hist = p_new(char *, HistSize); h->cur = 0; h->last = 0;