summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-02-15 13:19:07 -0600
committerDenis Kenzior <denkenz@gmail.com>2011-02-15 13:19:07 -0600
commitb7048692a75b49bfc807e89f6f2f02b7dc2b86ea (patch)
treebfee5fad589cfc428592bd349f51c91d2abebb29
parent19aac08e32238048ae6ee3e677c21778751a74b2 (diff)
downloadofono-b7048692a75b49bfc807e89f6f2f02b7dc2b86ea.tar.bz2
bluetooth: Reset adapter_any_path to NULL in unref
-rw-r--r--plugins/bluetooth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index a2ea8472..175ebaa6 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -818,6 +818,7 @@ static void bluetooth_unref(void)
return;
g_free(adapter_any_path);
+ adapter_any_path = NULL;
g_dbus_remove_watch(connection, bluetooth_watch);
g_dbus_remove_watch(connection, adapter_added_watch);