summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/hfp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c
index b60773e6..5c2be838 100644
--- a/plugins/hfp.c
+++ b/plugins/hfp.c
@@ -579,7 +579,7 @@ static int hfp_create_modem(const char *device)
ofono_modem_register(modem);
path = ofono_modem_get_path(modem);
- g_hash_table_insert(uuid_hash, g_strdup(device), g_strdup(path));
+ g_hash_table_insert(uuid_hash, g_strdup(device), modem);
return 0;
@@ -1053,7 +1053,7 @@ static int hfp_init()
}
uuid_hash = g_hash_table_new_full(g_str_hash, g_str_equal,
- g_free, g_free);
+ g_free, NULL);
adapter_address_hash = g_hash_table_new_full(g_str_hash, g_str_equal,
g_free, g_free);