steamcompmgr: Fix undefined state of wayland_commit_queue after move.

This commit is contained in:
Georg Lehmann 2021-12-19 17:54:43 +01:00 committed by Simon Ser
parent eba963b9fa
commit 0729954674

View file

@ -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++ )