From ddc3885795590325028233df15bdcb5d3ba950c6 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sun, 31 Oct 2021 16:04:46 +0300 Subject: [PATCH] [UI] Remove dtor lock as thread join will be done anyway --- src/xenia/ui/windowed_app_context_gtk.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/xenia/ui/windowed_app_context_gtk.cc b/src/xenia/ui/windowed_app_context_gtk.cc index ea092929c..bd287c1eb 100644 --- a/src/xenia/ui/windowed_app_context_gtk.cc +++ b/src/xenia/ui/windowed_app_context_gtk.cc @@ -22,14 +22,8 @@ GTKWindowedAppContext::~GTKWindowedAppContext() { if (quit_idle_pending_) { g_source_remove(quit_idle_pending_); } - { - // Lock the mutex for a pending_functions_idle_pending_ access memory - // barrier, even though no other threads can access this object anymore. - std::lock_guard pending_functions_idle_pending_lock( - pending_functions_idle_pending_mutex_); - if (pending_functions_idle_pending_) { - g_source_remove(pending_functions_idle_pending_); - } + if (pending_functions_idle_pending_) { + g_source_remove(pending_functions_idle_pending_); } }