gdbus: Close private connection if setup fails
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 10 Apr 2015 12:54:37 +0000 (15:54 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 20 Apr 2015 07:04:39 +0000 (09:04 +0200)
commita5b040b7818871a0d7e48bc1b26baa4c4f04eab4
tree26232a39cb29c80cd086280bb2e25be54e817bed
parent97abe1751d5351b09bf181f59e3207ea37dcdafe
gdbus: Close private connection if setup fails

Private connection should be properly closed with dbus_connection_close
otherwise libdbus exits with the following error:

  'The last reference on a connection was dropped without closing the
   connection. This is a bug in an application. See
   dbus_connection_unref() documentation for details. Most likely, the
   application was supposed to call dbus_connection_close(), since this
   is a private connection.'
gdbus/mainloop.c