drop mem_alloc and mem_free, use my own hand crafted optmized macros that
[apps/madmutt.git] / history.c
index 66559c0..2976633 100644 (file)
--- a/history.c
+++ b/history.c
@@ -11,6 +11,8 @@
 # include "config.h"
 #endif
 
+#include <lib-lib/mem.h>
+
 #include "mutt.h"
 #include "history.h"
 #include "lib/mem.h"
@@ -33,8 +35,8 @@ 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);
     }
   }