Fix memory leak on swaybar

Code from @NilsBrause

Ref #1820
master
Bruno Pinto 7 years ago
parent a5719f9f43
commit 9bc4565a59
No known key found for this signature in database
GPG Key ID: 10EC5682FA9EF384

@ -104,6 +104,7 @@ static bool i3bar_parse_json(struct status_line *status, const char *text) {
json_object_get_int(border_right) : 1; json_object_get_int(border_right) : 1;
wl_list_insert(&status->blocks, &block->link); wl_list_insert(&status->blocks, &block->link);
} }
json_object_put(results);
return true; return true;
} }

Loading…
Cancel
Save