diff options
author | Hannu Mallat <hannu.mallat@jollamobile.com> | 2015-01-13 15:05:18 -0500 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2015-01-21 13:42:17 +0200 |
commit | 6dec6a746e5ffcfc43e3a01f4894a9ddc7e2767c (patch) | |
tree | 8358d0339cb921e6991fdb93ba5d54d2c68de055 /plugins/bluetooth.c | |
parent | 3399d129e931145c0cfba1e9395bc3730e152510 (diff) | |
download | connman-6dec6a746e5ffcfc43e3a01f4894a9ddc7e2767c.tar.gz |
bluetooth: Clean up gdbus client on exit
Gdbus client for BlueZ was created on plugin initialization, but not
cleaned up on plugin exit. Fixed by adding a g_dbus_client_unref() to
bluetooth_exit().
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r-- | plugins/bluetooth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 636c7bf5..45cc3194 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -976,6 +976,8 @@ static void bluetooth_exit(void) */ device_driver.disable = NULL; + g_dbus_client_unref(client); + connman_network_driver_unregister(&network_driver); g_hash_table_destroy(networks); |