mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Core: Reset memory watcher on same thread which allocates it
This commit is contained in:
@ -295,9 +295,6 @@ void Stop() // - Hammertime!
|
||||
|
||||
ResetRumble();
|
||||
|
||||
#ifdef USE_MEMORYWATCHER
|
||||
s_memory_watcher.reset();
|
||||
#endif
|
||||
}
|
||||
|
||||
void DeclareAsCPUThread()
|
||||
@ -374,6 +371,10 @@ static void CpuThread(const std::optional<std::string>& savestate_path, bool del
|
||||
// Enter CPU run loop. When we leave it - we are done.
|
||||
CPU::Run();
|
||||
|
||||
#ifdef USE_MEMORYWATCHER
|
||||
s_memory_watcher.reset();
|
||||
#endif
|
||||
|
||||
s_is_started = false;
|
||||
|
||||
if (_CoreParameter.bFastmem)
|
||||
|
Reference in New Issue
Block a user