X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=buffy.c;h=da372683e78eddc081c869445d09aa7ad6b2fea8;hb=9e6ab0152703ad301042ce8810859f41fbee405a;hp=b00170b41df4709d08de275e5155545d6dad8334;hpb=2480908b15d54c196bab72d01773e3f3e27d0daf;p=apps%2Fmadmutt.git diff --git a/buffy.c b/buffy.c index b00170b..da37268 100644 --- a/buffy.c +++ b/buffy.c @@ -14,6 +14,8 @@ # include "config.h" #endif +#include + #include "mutt.h" #include "buffy.h" #include "buffer.h" @@ -27,7 +29,6 @@ #include "imap.h" #endif -#include "lib/mem.h" #include "lib/intl.h" #include @@ -170,8 +171,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) { @@ -220,7 +221,7 @@ int buffy_parse_mailboxes (BUFFER * path, BUFFER * s, unsigned long data, } if (i < 0) { - tmp = mem_calloc (1, sizeof (BUFFY)); + tmp = p_new(BUFFY, 1); tmp->path = str_dup (buf); tmp->magic = 0; list_push_back (&Incoming, tmp);