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
parent c7d9fb602e
commit 07c0357366

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