Use good m_ functions, because it smell like a flower, version 2.
[apps/madmutt.git] / lib-mx / mx.c
index bd03117..1caefe5 100644 (file)
@@ -17,6 +17,7 @@
 #include <lib-ui/sidebar.h>
 
 #include "mutt.h"
+#include "pattern.h"
 #include "buffy.h"
 #include "mx.h"
 #include "mbox.h"
@@ -566,8 +567,7 @@ void mx_fastclose_mailbox (CONTEXT * ctx)
 
   p_delete(&ctx->path);
   p_delete(&ctx->pattern);
-  if (ctx->limit_pattern)
-    mutt_pattern_free (&ctx->limit_pattern);
+  pattern_list_wipe(&ctx->limit_pattern);
   m_fclose(&ctx->fp);
   p_clear(ctx, 1);
 }