aboutsummaryrefslogtreecommitdiffstats
path: root/sap
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-05-03 17:41:23 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-05-03 23:29:27 +0300
commit69fd49d6febd0666a7193faa9cae04c455e945ff (patch)
tree39cfc50d929ef298a0c6da6783b31f17d38e700e /sap
parent8a255b3569a39837ae85491a07ac9e589865f8e0 (diff)
downloadbluez-69fd49d6febd0666a7193faa9cae04c455e945ff.tar.gz
bluez-69fd49d6febd0666a7193faa9cae04c455e945ff.tar.xz
bluez-69fd49d6febd0666a7193faa9cae04c455e945ff.zip
SAP: Fix not unregistering dummy interface on exit
Dummy interface is registered on plugin init and is never unregistered
Diffstat (limited to 'sap')
-rw-r--r--sap/sap-dummy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sap/sap-dummy.c b/sap/sap-dummy.c
index acdec777..389548b3 100644
--- a/sap/sap-dummy.c
+++ b/sap/sap-dummy.c
@@ -340,6 +340,9 @@ int sap_init(void)
void sap_exit(void)
{
+ g_dbus_unregister_interface(connection, SAP_DUMMY_PATH,
+ SAP_DUMMY_IFACE);
+
dbus_connection_unref(connection);
connection = NULL;
}