Diff between f96f3b34db40228feb2efb9cc81df92853d0111e and 9bf6bb654ff78efafe8cb4c4d55b6acaa0f53c27
Changed Files
| File | Additions | Deletions | Status |
| obexd/client/pbap.c | +14 | -2 | modified |
Full Patch
diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
index 2f234fa..90f8bdc 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
@@ -1485,8 +1485,20 @@ void pbap_exit(void)
{
DBG("");
- dbus_connection_unref(conn);
- conn = NULL;
+ g_dbus_remove_watch(system_conn, listener_id);
+
+ unregister_profile();
+
+ if (system_conn) {
+ dbus_connection_close(system_conn);
+ dbus_connection_unref(system_conn);
+ system_conn = NULL;
+ }
+
+ if (conn) {
+ dbus_connection_unref(conn);
+ conn = NULL;
+ }
obc_driver_unregister(&pbap);
}