Use good m_ functions, because it smell like a flower, version 2.
[apps/madmutt.git] / lib-ui / color.c
index ff90ff1..a9ee64a 100644 (file)
@@ -7,18 +7,11 @@
  * please see the file GPL in the top level source directory.
  */
 
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <string.h>
-#include <stdlib.h>
-#include <ctype.h>
-
 #include <lib-lib/lib-lib.h>
 
 #include "curses.h"
 
+#include "pattern.h"
 #include "mutt.h"
 
 /* globals */
@@ -119,7 +112,7 @@ static void mutt_free_color_line (COLOR_LINE ** l, int free_colors)
    */
 
   regfree (&tmp->rx);
-  mutt_pattern_free (&tmp->color_pattern);
+  pattern_list_wipe(&tmp->color_pattern);
   p_delete(&tmp->pattern);
   p_delete(l);
 }