Fixes parse-memory leak

This commit is contained in:
krypt-n 2014-10-09 12:58:12 +02:00
parent 3e2e54af90
commit f834c13ea0
1 changed files with 2 additions and 1 deletions

3
bar.c
View File

@ -104,6 +104,7 @@ static area_stack_t astack;
static XftColor sel_fg;
static XftDraw *xft_draw;
//char width lookuptable
#define MAX_WIDTHS (1 << 16)
static wchar_t xft_char[MAX_WIDTHS];
static char xft_width[MAX_WIDTHS];
@ -488,7 +489,7 @@ parse (char *text)
for (;;) {
if (*p == '\0' || *p == '\n')
return;
break;
if (*p == '%' && p++ && *p == '{' && (end = strchr(p++, '}'))) {
while (p < end) {