1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 21:07:45 +00:00

Fix another possible deref crash

This commit is contained in:
Joshua Goins 2022-07-20 17:58:35 -04:00
parent c5253f408b
commit a48b6d630d

View file

@ -181,7 +181,7 @@ void SquareLauncher::registerSession(const LoginInformation& info) {
}
auto reply = window.mgr->post(request, report.toUtf8());
connect(reply, &QNetworkReply::finished, [&] {
connect(reply, &QNetworkReply::finished, [=, &info] {
if(reply->rawHeaderList().contains("X-Patch-Unique-Id")) {
auth.SID = reply->rawHeader("X-Patch-Unique-Id");