This commit is contained in:
bug 2026-04-08 22:02:31 +01:00 committed by GitHub
commit 83fecf30fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -543,6 +543,9 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram
}
override fun onDestroy() {
if (::emulationState.isInitialized) {
emulationState.stop()
}
EmulationLifecycleUtil.removeHook(onPause)
EmulationLifecycleUtil.removeHook(onShutdown)
if (gameFd != null) {