diff --git a/rpcs3/Emu/Memory/vm.cpp b/rpcs3/Emu/Memory/vm.cpp index 18267a59ea..66de860bbf 100644 --- a/rpcs3/Emu/Memory/vm.cpp +++ b/rpcs3/Emu/Memory/vm.cpp @@ -887,9 +887,9 @@ namespace vm // Notify rsx to invalidate range // Note: This must be done *before* memory gets unmapped while holding the vm lock, otherwise // the RSX might try to call VirtualProtect on memory that is already unmapped - if (auto& rsxthr = g_fxo->get(); !Emu.IsPaused() && g_fxo->is_init()) + if (auto rsxthr = g_fxo->try_get()) { - rsxthr.on_notify_memory_unmapped(addr, size); + rsxthr->on_notify_memory_unmapped(addr, size); } // Deregister PPU related data