diff options
author | Ian Fan <ianfan0@gmail.com> | 2019-02-16 11:02:15 +0000 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-02-16 21:49:16 +0100 |
commit | f54077dbca2faf3f0d614377a01a215c82ef075e (patch) | |
tree | 159afadf20fef694e827213458a5a5caf4195112 /swaybar/tray/watcher.c | |
parent | tray: when a service is lost, remove all matching items (diff) | |
download | sway-f54077dbca2faf3f0d614377a01a215c82ef075e.tar.gz sway-f54077dbca2faf3f0d614377a01a215c82ef075e.tar.zst sway-f54077dbca2faf3f0d614377a01a215c82ef075e.zip |
tray: fix memory leaks
Diffstat (limited to 'swaybar/tray/watcher.c')
-rw-r--r-- | swaybar/tray/watcher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaybar/tray/watcher.c b/swaybar/tray/watcher.c index 432837d0..951a0589 100644 --- a/swaybar/tray/watcher.c +++ b/swaybar/tray/watcher.c | |||
@@ -186,8 +186,8 @@ struct swaybar_watcher *create_watcher(char *protocol, sd_bus *bus) { | |||
186 | goto error; | 186 | goto error; |
187 | } | 187 | } |
188 | 188 | ||
189 | sd_bus_slot_set_floating(signal_slot, 1); | 189 | sd_bus_slot_set_floating(signal_slot, 0); |
190 | sd_bus_slot_set_floating(vtable_slot, 1); | 190 | sd_bus_slot_set_floating(vtable_slot, 0); |
191 | 191 | ||
192 | watcher->bus = bus; | 192 | watcher->bus = bus; |
193 | watcher->hosts = create_list(); | 193 | watcher->hosts = create_list(); |