mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-03 16:25:39 +00:00
Fix segfault-on-emu_stop() bug.
This commit is contained in:
parent
696c58f9f0
commit
4151d1d600
6
uc.c
6
uc.c
|
@ -525,8 +525,10 @@ uc_err uc_emu_stop(uc_engine *uc)
|
||||||
return UC_ERR_OK;
|
return UC_ERR_OK;
|
||||||
|
|
||||||
uc->stop_request = true;
|
uc->stop_request = true;
|
||||||
// exit the current TB
|
if (uc->current_cpu) {
|
||||||
cpu_exit(uc->current_cpu);
|
// exit the current TB
|
||||||
|
cpu_exit(uc->current_cpu);
|
||||||
|
}
|
||||||
|
|
||||||
return UC_ERR_OK;
|
return UC_ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue