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_); } }