zeroconf-publish: unref D-Bus connection
authorTanu Kaskinen <tanuk@iki.fi>
Mon, 5 Sep 2016 15:57:17 +0000 (18:57 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 5 Sep 2016 15:59:27 +0000 (18:59 +0300)
pa_dbus_bus_get() increments the bus connection refcount, but unreffing
the connection was never done.

src/modules/module-zeroconf-publish.c

index c101b81..0d90840 100644 (file)
@@ -722,6 +722,9 @@ out:
     if (msg)
         dbus_message_unref(msg);
 
+    if (bus)
+        pa_dbus_connection_unref(bus);
+
     return icon_name;
 }
 #endif