From f834c13ea02b621e0de797b55913e40c86a39e33 Mon Sep 17 00:00:00 2001 From: krypt-n Date: Thu, 9 Oct 2014 12:58:12 +0200 Subject: [PATCH] Fixes parse-memory leak --- bar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bar.c b/bar.c index 7fea3c7..abdd1d7 100644 --- a/bar.c +++ b/bar.c @@ -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) {