mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01:00
swaybar: Free unused IPC response
This commit is contained in:
parent
33a74bfb93
commit
8955e5f1ad
1 changed files with 1 additions and 0 deletions
|
@ -393,6 +393,7 @@ void bar_ipc_init(int outputi, const char *bar_id) {
|
|||
const char *subscribe_json = "[ \"workspace\" ]";
|
||||
len = strlen(subscribe_json);
|
||||
res = ipc_single_command(ipc_listen_socketfd, IPC_SUBSCRIBE, subscribe_json, &len);
|
||||
free(res);
|
||||
|
||||
ipc_update_workspaces();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue