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

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:39:17 -05:00 committed by GitHub
commit 0e9c0d8c04
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"); << (g_portal_available ? "yes" : "no");
flag->Set(); flag->Set();
bus->ShutdownAndBlock(); bus->ShutdownAndBlock();
bus.reset();
}, },
std::move(bus), flag)); bus, flag));
} }
} // namespace } // namespace