diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-25 11:00:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 11:00:24 +0200 |
commit | 75674295504af9118d2af3c8677d8e1e84e85e77 (patch) | |
tree | 096f6c4635168e71e29e611cebc9afac9e22736b /include | |
parent | 317b8cbd9374dafa0c8649e9db45cdee7b748fd2 (diff) | |
parent | aa36899d8a54d359bf3da997fb6f681199e49938 (diff) |
Merge pull request #1861 from emersion/swaybar-memory-leaks
Fix a bunch of swaybar memory leaks
Diffstat (limited to 'include')
-rw-r--r-- | include/swaybar/bar.h | 2 | ||||
-rw-r--r-- | include/swaybar/config.h | 2 | ||||
-rw-r--r-- | include/swaybar/status_line.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 0037190b..af478f33 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h @@ -79,4 +79,6 @@ void bar_setup(struct swaybar *bar, void bar_run(struct swaybar *bar); void bar_teardown(struct swaybar *bar); +void free_workspaces(struct wl_list *list); + #endif diff --git a/include/swaybar/config.h b/include/swaybar/config.h index 7f321df8..6739c28a 100644 --- a/include/swaybar/config.h +++ b/include/swaybar/config.h @@ -29,7 +29,7 @@ struct swaybar_config { bool binding_mode_indicator; bool wrap_scroll; bool workspace_buttons; - struct wl_list outputs; + struct wl_list outputs; // config_output::link bool all_outputs; int height; diff --git a/include/swaybar/status_line.h b/include/swaybar/status_line.h index 3538f49c..bf12a842 100644 --- a/include/swaybar/status_line.h +++ b/include/swaybar/status_line.h @@ -73,5 +73,6 @@ void status_line_free(struct status_line *status); bool i3bar_handle_readable(struct status_line *status); void i3bar_block_send_click(struct status_line *status, struct i3bar_block *block, int x, int y, uint32_t button); +void i3bar_block_free(struct i3bar_block *block); #endif |