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

next
Axel Wagner 2011-01-26 00:55:15 +01:00
parent 9d22b29166
commit d9f35859fa
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);
FREE(text);
if (xcb_request_failed(sl_pm_cookie, "Could not allocate statusline-buffer")) {
exit(EXIT_FAILURE);
}