aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Pinto <brunoferreirapinto@gmail.com>2018-04-19 21:28:52 +0100
committerBruno Pinto <brunoferreirapinto@gmail.com>2018-04-20 01:58:30 +0100
commit9bc4565a59ba474a1aec74e333630afa6da6d2dd (patch)
treecf8d0aa25c73d484023459ec0b216dcbff1871f0
parenta5719f9f432b5f9378ebd2136f8a2cde46dfb407 (diff)
Fix memory leak on swaybar
Code from @NilsBrause Ref #1820
-rw-r--r--swaybar/i3bar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaybar/i3bar.c b/swaybar/i3bar.c
index 923ad755..dced13d2 100644
--- a/swaybar/i3bar.c
+++ b/swaybar/i3bar.c
@@ -104,6 +104,7 @@ static bool i3bar_parse_json(struct status_line *status, const char *text) {
json_object_get_int(border_right) : 1;
wl_list_insert(&status->blocks, &block->link);
}
+ json_object_put(results);
return true;
}