From 072995467478247ba1a9f4c4448391a752d92bc1 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sun, 19 Dec 2021 17:54:43 +0100 Subject: [PATCH] steamcompmgr: Fix undefined state of wayland_commit_queue after move. --- src/steamcompmgr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index c24af53..36774b0 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -3446,6 +3446,7 @@ void check_new_wayland_res( void ) { std::lock_guard lock( wayland_commit_lock ); tmp_queue = std::move(wayland_commit_queue); + wayland_commit_queue = {}; } for ( uint32_t i = 0; i < tmp_queue.size(); i++ )