bugfix: memleak: use i3STRING_FREE() instead of FREE()
This commit is contained in:
parent
2d1ebc2b90
commit
f18ab28f5c
|
@ -80,7 +80,7 @@ static int stdin_start_array(void *context) {
|
||||||
struct status_block *first;
|
struct status_block *first;
|
||||||
while (!TAILQ_EMPTY(&statusline_head)) {
|
while (!TAILQ_EMPTY(&statusline_head)) {
|
||||||
first = TAILQ_FIRST(&statusline_head);
|
first = TAILQ_FIRST(&statusline_head);
|
||||||
FREE(first->full_text);
|
I3STRING_FREE(first->full_text);
|
||||||
FREE(first->color);
|
FREE(first->color);
|
||||||
TAILQ_REMOVE(&statusline_head, first, blocks);
|
TAILQ_REMOVE(&statusline_head, first, blocks);
|
||||||
free(first);
|
free(first);
|
||||||
|
|
Loading…
Reference in New Issue