summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/bluetooth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index a0dafc67..69a5ebb4 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -763,6 +763,9 @@ static void bluetooth_disconnect(DBusConnection *connection, void *user_data)
{
DBG("connection %p", connection);
+ if (bluetooth_devices == NULL)
+ return;
+
g_hash_table_destroy(bluetooth_devices);
bluetooth_devices = NULL;
}