drop mem_alloc and mem_free, use my own hand crafted optmized macros that
[apps/madmutt.git] / buffy.c
diff --git a/buffy.c b/buffy.c
index b00170b..ddb0ec7 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -14,6 +14,8 @@
 # include "config.h"
 #endif
 
+#include <lib-lib/mem.h>
+
 #include "mutt.h"
 #include "buffy.h"
 #include "buffer.h"
@@ -170,8 +172,8 @@ void buffy_update_mailbox (BUFFY * b)
 
 /* func to free buffy for list_del() */
 static void buffy_free (BUFFY** p) {
-  mem_free(&(*p)->path);
-  mem_free(p);
+  p_delete(&(*p)->path);
+  p_delete(p);
 }
 
 int buffy_lookup (const char* path) {