aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/maemo/maemo_service.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-09-30 13:43:58 +0200
committerTobias Brunner <tobias@strongswan.org>2010-10-14 17:36:19 +0200
commit6f599713713813cb7636f3b43c88484660f8eef0 (patch)
treeb8be27f0b1f72c66886aa56048427eaf0a4717ae /src/libcharon/plugins/maemo/maemo_service.c
parent9f01ba4044401f234a99acf241bf7ed9191981cd (diff)
downloadstrongswan-6f599713713813cb7636f3b43c88484660f8eef0.tar.bz2
strongswan-6f599713713813cb7636f3b43c88484660f8eef0.tar.xz
Maemo: Properly unregister the RPC callbacks.
Diffstat (limited to 'src/libcharon/plugins/maemo/maemo_service.c')
-rw-r--r--src/libcharon/plugins/maemo/maemo_service.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcharon/plugins/maemo/maemo_service.c b/src/libcharon/plugins/maemo/maemo_service.c
index ad150d7f8..3dc61292e 100644
--- a/src/libcharon/plugins/maemo/maemo_service.c
+++ b/src/libcharon/plugins/maemo/maemo_service.c
@@ -318,6 +318,12 @@ METHOD(maemo_service_t, destroy, void,
}
if (this->context)
{
+ osso_rpc_unset_cb_f(this->context,
+ OSSO_CHARON_SERVICE,
+ OSSO_CHARON_OBJECT,
+ OSSO_CHARON_IFACE,
+ (osso_rpc_cb_f*)dbus_req_handler,
+ this);
osso_deinitialize(this->context);
}
charon->bus->remove_listener(charon->bus, &this->public.listener);