From d9f35859fa281a1239dc3bdd94e91020f90fcfca Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Wed, 26 Jan 2011 00:55:15 +0100 Subject: [PATCH] Bugfix: free() text, after drawing it (thx dothebart) --- i3bar/src/xcb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index b48a6ad9..1d7bcd3e 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -197,6 +197,8 @@ void refresh_statusline() { draw_text(statusline_pm, statusline_ctx, 0, 0, text, glyph_count); + FREE(text); + if (xcb_request_failed(sl_pm_cookie, "Could not allocate statusline-buffer")) { exit(EXIT_FAILURE); } -- 2.39.5