diff --git a/Core/System.cpp b/Core/System.cpp index 1adf7089ec..34d9d80b81 100644 --- a/Core/System.cpp +++ b/Core/System.cpp @@ -260,8 +260,10 @@ void CPU_RunLoop() { } // Let's make sure the gpu has already cleaned up before we start freeing memory. - gpu->FinishEventLoop(); - gpu->SyncThread(true); + if (gpu) { + gpu->FinishEventLoop(); + gpu->SyncThread(true); + } CPU_Shutdown(); CPU_SetState(CPU_THREAD_NOT_RUNNING);