summaryrefslogtreecommitdiffstats
path: root/swaybar/tray/watcher.c
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2019-02-16 11:02:15 +0000
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-02-18 15:11:48 -0500
commit9ff59b7c6bbd46dcbaf5f516705f349a9138261c (patch)
tree547ca2bae68dc1a87899007d56322425bd0459c5 /swaybar/tray/watcher.c
parenttray: when a service is lost, remove all matching items (diff)
downloadsway-9ff59b7c6bbd46dcbaf5f516705f349a9138261c.tar.gz
sway-9ff59b7c6bbd46dcbaf5f516705f349a9138261c.tar.zst
sway-9ff59b7c6bbd46dcbaf5f516705f349a9138261c.zip
tray: fix memory leaks
Diffstat (limited to 'swaybar/tray/watcher.c')
-rw-r--r--swaybar/tray/watcher.c4
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();