From: Axel Wagner Date: Tue, 25 Jan 2011 23:55:15 +0000 (+0100) Subject: Bugfix: free() text, after drawing it (thx dothebart) X-Git-Tag: 4.0.1~7^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e9ef6d186a15815795df955726a34b0d4c35a460;p=i3%2Fi3 Bugfix: free() text, after drawing it (thx dothebart) --- 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); }