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
parent 8f37d42241
commit 0e9c0d8c04

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