bus: change destructor to just 'unref'

Previously the bus destructor called sdbus_flush_close_unref.
This is inappropriate because bus objects can be created through
a duplicated reference, for example, using sd_bus_message_get_bus().
Therefore, there is no certainty that there is only 1 reference to
the same underlying sd_bus_t, which makes the flush/close incorrect.

Change-Id: I2d3aac2f79f47ecb881a8f4bfb7bddb5686ae740
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
1 file changed
tree: 4e6ee132ae9723e592a86ba39b24ebcb501148ff
  1. mapbox/
  2. sdbusplus/
  3. test/
  4. tools/
  5. .gitignore
  6. LICENSE