summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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:
55 virtual ~BreakPointObserver() { 55 virtual ~BreakPointObserver() {
56 auto context = context_weak.lock(); 56 auto context = context_weak.lock();
57 if (context) { 57 if (context) {
58 std::unique_lock<std::mutex> lock(context->breakpoint_mutex); 58 {
59 context->breakpoint_observers.remove(this); 59 std::unique_lock<std::mutex> lock(context->breakpoint_mutex);
60 context->breakpoint_observers.remove(this);
61 }
60 62
61 // If we are the last observer to be destroyed, tell the debugger context that 63 // If we are the last observer to be destroyed, tell the debugger context that
62 // it is free to continue. In particular, this is required for a proper yuzu 64 // it is free to continue. In particular, this is required for a proper yuzu