bugfix: memleak: use i3STRING_FREE() instead of FREE()

This commit is contained in:
Michael Stapelberg 2012-09-03 00:41:51 +02:00
parent 2d1ebc2b90
commit f18ab28f5c
1 changed files with 1 additions and 1 deletions

View File

@ -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);