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~3^2~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d9f35859fa281a1239dc3bdd94e91020f90fcfca;p=i3%2Fi3 Bugfix: free() text, after drawing it (thx dothebart) --- 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); }