OSDN Git Service

SAP: Fix not unregistering dummy interface on exit
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 3 May 2012 14:41:23 +0000 (17:41 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 3 May 2012 20:29:27 +0000 (23:29 +0300)
Dummy interface is registered on plugin init and is never unregistered

sap/sap-dummy.c

index acdec77..389548b 100644 (file)
@@ -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;
 }