more updates in the build system, gettext related.
[apps/madmutt.git] / imap / auth.c
index 7c6293d..2e6b8ca 100644 (file)
@@ -15,8 +15,9 @@
 # include "config.h"
 #endif
 
-#include "lib/mem.h"
-#include "lib/intl.h"
+#include <lib-lib/mem.h>
+
+#include <lib-lib/macros.h>
 #include "lib/debug.h"
 
 #include "mutt.h"
@@ -71,7 +72,7 @@ int imap_authenticate (IMAP_DATA * idata)
             !ascii_strcasecmp (authenticator->method, method))
           if ((r = authenticator->authenticate (idata, method)) !=
               IMAP_AUTH_UNAVAIL) {
-            mem_free (&methods);
+            p_delete(&methods);
             return r;
           }
 
@@ -79,7 +80,7 @@ int imap_authenticate (IMAP_DATA * idata)
       }
     }
 
-    mem_free (&methods);
+    p_delete(&methods);
   }
   else {
     /* Fall back to default: any authenticator */