From e9ef6d186a15815795df955726a34b0d4c35a460 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 2759f159..f775aad3 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