fix: use-after-move of bus connection in xdg portal detection (#47024)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
trop[bot] 2025-05-09 09:28:05 -04:00 committed by GitHub
commit 07c0357366
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,8 +86,9 @@ void CheckPortalAvailabilityOnBusThread() {
<< (g_portal_available ? "yes" : "no");
flag->Set();
bus->ShutdownAndBlock();
bus.reset();
},
std::move(bus), flag));
bus, flag));
}
} // namespace