Bugfix: free() text, after drawing it (thx dothebart)

This commit is contained in:
Axel Wagner 2011-01-26 00:55:15 +01:00
parent 51ffd4c3dd
commit e9ef6d186a
1 changed files with 2 additions and 0 deletions

View File

@ -197,6 +197,8 @@ void refresh_statusline() {
draw_text(statusline_pm, statusline_ctx, 0, 0, text, glyph_count); 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")) { if (xcb_request_failed(sl_pm_cookie, "Could not allocate statusline-buffer")) {
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }