mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
fix: use-after-move of bus connection in xdg portal detection (#47008)
This commit is contained in:
@@ -86,8 +86,9 @@ void CheckPortalAvailabilityOnBusThread() {
|
||||
<< (g_portal_available ? "yes" : "no");
|
||||
flag->Set();
|
||||
bus->ShutdownAndBlock();
|
||||
bus.reset();
|
||||
},
|
||||
std::move(bus), flag));
|
||||
bus, flag));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user