projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use p_new instead of xmalloc()
[apps/madmutt.git]
/
lib-ui
/
color.c
diff --git
a/lib-ui/color.c
b/lib-ui/color.c
index
21b93f4
..
afb84a5
100644
(file)
--- a/
lib-ui/color.c
+++ b/
lib-ui/color.c
@@
-11,6
+11,7
@@
#include "curses.h"
#include "curses.h"
+#include "pattern.h"
#include "mutt.h"
/* globals */
#include "mutt.h"
/* globals */
@@
-111,7
+112,7
@@
static void mutt_free_color_line (COLOR_LINE ** l, int free_colors)
*/
regfree (&tmp->rx);
*/
regfree (&tmp->rx);
-
mutt_pattern_free
(&tmp->color_pattern);
+
pattern_list_wipe
(&tmp->color_pattern);
p_delete(&tmp->pattern);
p_delete(l);
}
p_delete(&tmp->pattern);
p_delete(l);
}
@@
-182,7
+183,7
@@
int mutt_alloc_color (int fg, int bg)
int i;
#if defined (USE_SLANG_CURSES)
int i;
#if defined (USE_SLANG_CURSES)
- char fgc[S
HORT_STRING], bgc[SHORT_
STRING];
+ char fgc[S
TRING], bgc[
STRING];
#endif
/* check to see if this color is already allocated to save space */
#endif
/* check to see if this color is already allocated to save space */