steamcompmgr: Fix undefined state of wayland_commit_queue after move.
This commit is contained in:
parent
eba963b9fa
commit
0729954674
1 changed files with 1 additions and 0 deletions
|
@ -3446,6 +3446,7 @@ void check_new_wayland_res( void )
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock( wayland_commit_lock );
|
std::lock_guard<std::mutex> lock( wayland_commit_lock );
|
||||||
tmp_queue = std::move(wayland_commit_queue);
|
tmp_queue = std::move(wayland_commit_queue);
|
||||||
|
wayland_commit_queue = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( uint32_t i = 0; i < tmp_queue.size(); i++ )
|
for ( uint32_t i = 0; i < tmp_queue.size(); i++ )
|
||||||
|
|
Loading…
Reference in a new issue