Diff between c55aea2754f087ea04d07b2b4ce9acdfc72f6551 and b2c877b4fc6734e2ac0c87e05e2f4b4b540fdf32
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +3 | -3 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 8222610..a9b644b 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1220,6 +1220,9 @@ static void device_profile_connected(struct btd_device *dev,
return;
done:
+ g_slist_free(dev->pending);
+ dev->pending = NULL;
+
if (!dev->connect)
return;
@@ -1241,9 +1244,6 @@ done:
g_dbus_send_reply(dbus_conn, dev->connect, DBUS_TYPE_INVALID);
}
- g_slist_free(dev->pending);
- dev->pending = NULL;
-
dbus_message_unref(dev->connect);
dev->connect = NULL;
}