From f54077dbca2faf3f0d614377a01a215c82ef075e Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Sat, 16 Feb 2019 11:02:15 +0000 Subject: tray: fix memory leaks --- swaybar/tray/watcher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'swaybar/tray/watcher.c') 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) { goto error; } - sd_bus_slot_set_floating(signal_slot, 1); - sd_bus_slot_set_floating(vtable_slot, 1); + sd_bus_slot_set_floating(signal_slot, 0); + sd_bus_slot_set_floating(vtable_slot, 0); watcher->bus = bus; watcher->hosts = create_list(); -- cgit v1.2.3-54-g00ecf