summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-26 07:01:10 +0200
committerGitHub <noreply@github.com>2018-06-26 07:01:10 +0200
commit1da0ee57fd4c3309f119f126822833f65b2255fc (patch)
treed75c8092945af47a8a5f98b70d89bb1b5b999c96
parentSend the correct RequestUpdateAudioRenderer revision in the output header (#587) (diff)
parentFix crash at exit (diff)
downloadyuzu-1da0ee57fd4c3309f119f126822833f65b2255fc.tar
yuzu-1da0ee57fd4c3309f119f126822833f65b2255fc.tar.gz
yuzu-1da0ee57fd4c3309f119f126822833f65b2255fc.tar.bz2
yuzu-1da0ee57fd4c3309f119f126822833f65b2255fc.tar.lz
yuzu-1da0ee57fd4c3309f119f126822833f65b2255fc.tar.xz
yuzu-1da0ee57fd4c3309f119f126822833f65b2255fc.tar.zst
yuzu-1da0ee57fd4c3309f119f126822833f65b2255fc.zip
-rw-r--r--src/video_core/debug_utils/debug_utils.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h
index bbba8e380..9382a75e5 100644
--- a/src/video_core/debug_utils/debug_utils.h
+++ b/src/video_core/debug_utils/debug_utils.h
@@ -55,8 +55,10 @@ public:
virtual ~BreakPointObserver() {
auto context = context_weak.lock();
if (context) {
- std::unique_lock<std::mutex> lock(context->breakpoint_mutex);
- context->breakpoint_observers.remove(this);
+ {
+ std::unique_lock<std::mutex> lock(context->breakpoint_mutex);
+ context->breakpoint_observers.remove(this);
+ }
// If we are the last observer to be destroyed, tell the debugger context that
// it is free to continue. In particular, this is required for a proper yuzu