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:
parent
c7d9fb602e
commit
07c0357366
1 changed files with 2 additions and 1 deletions
|
@ -86,8 +86,9 @@ void CheckPortalAvailabilityOnBusThread() {
|
|||
<< (g_portal_available ? "yes" : "no");
|
||||
flag->Set();
|
||||
bus->ShutdownAndBlock();
|
||||
bus.reset();
|
||||
},
|
||||
std::move(bus), flag));
|
||||
bus, flag));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue