From 47a66da5de37faccac1207615ce0914b4ab32220 Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Tue, 18 Sep 2018 18:06:19 +0100 Subject: [PATCH] swaybar: only free tokener when using i3bar protocol --- swaybar/status_line.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swaybar/status_line.c b/swaybar/status_line.c index 01ed70d9c..401bf6f6f 100644 --- a/swaybar/status_line.c +++ b/swaybar/status_line.c @@ -147,8 +147,8 @@ void status_line_free(struct status_line *status) { wl_list_remove(&block->link); i3bar_block_unref(block); } + json_tokener_free(status->tokener); } - json_tokener_free(status->tokener); free(status->buffer); free(status); }