mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Fix a bunch of swaybar memory leaks
This commit is contained in:
parent
317b8cbd93
commit
aa36899d8a
8 changed files with 38 additions and 24 deletions
|
|
@ -7,7 +7,7 @@
|
|||
#include "swaybar/config.h"
|
||||
#include "swaybar/status_line.h"
|
||||
|
||||
static void i3bar_block_free(struct i3bar_block *block) {
|
||||
void i3bar_block_free(struct i3bar_block *block) {
|
||||
if (!block) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -18,6 +18,7 @@ static void i3bar_block_free(struct i3bar_block *block) {
|
|||
free(block->name);
|
||||
free(block->instance);
|
||||
free(block->color);
|
||||
free(block);
|
||||
}
|
||||
|
||||
static bool i3bar_parse_json(struct status_line *status, const char *text) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue