Bugfix: free() text, after drawing it (thx dothebart)
This commit is contained in:
parent
51ffd4c3dd
commit
e9ef6d186a
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue