simplify charset and things in the sockets API.
[apps/madmutt.git] / lib-mime / rfc2231.c
index e7c1053..bf05bef 100644 (file)
@@ -47,6 +47,7 @@
 #include <lib-mime/mime.h>
 
 #include "charset.h"
+#include "mutt.h"
 
 typedef struct rfc2231_param {
     struct rfc2231_param *next;
@@ -141,7 +142,7 @@ static void purge_empty_parameters(PARAMETER **headp)
         if (!p->attribute || !p->value) {
             *headp = p->next;
             p->next = NULL;
-            parameter_delete(&p);
+            parameter_list_wipe(&p);
         } else {
             headp = &(*headp)->next;
         }