summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2016-09-05 18:57:17 +0300
committerTanu Kaskinen <tanuk@iki.fi>2016-09-05 18:59:27 +0300
commitc73bbee87898bcf07734cb5a55236c561dea2765 (patch)
tree2aba93b0ca0988342c4afa5e4d8f2d2af236edb3
parentde2f560137f1681ed64af1b645565ce97941dc66 (diff)
zeroconf-publish: unref D-Bus connection
pa_dbus_bus_get() increments the bus connection refcount, but unreffing the connection was never done.
-rw-r--r--src/modules/module-zeroconf-publish.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/module-zeroconf-publish.c b/src/modules/module-zeroconf-publish.c
index c101b818d..0d908409e 100644
--- a/src/modules/module-zeroconf-publish.c
+++ b/src/modules/module-zeroconf-publish.c
@@ -722,6 +722,9 @@ out:
if (msg)
dbus_message_unref(msg);
+ if (bus)
+ pa_dbus_connection_unref(bus);
+
return icon_name;
}
#endif