mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 11:33:06 +00:00
Fix crash at exit
This commit is contained in:
parent
838724c588
commit
ad39bab271
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue