mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 03:17:58 -05:00
core: Switch to unique_ptr for usage of Common::Fiber.
- With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context. - Fixes a memory leak due to circular reference of the shared pointer.
This commit is contained in:
@ -2626,8 +2626,7 @@ void Call(Core::System& system, u32 immediate) {
|
||||
kernel.ExitSVCProfile();
|
||||
|
||||
if (!thread->IsCallingSvc()) {
|
||||
auto* host_context = thread->GetHostContext().get();
|
||||
host_context->Rewind();
|
||||
thread->GetHostContext()->Rewind();
|
||||
}
|
||||
|
||||
system.EnterDynarmicProfile();
|
||||
|
Reference in New Issue
Block a user