This commit is contained in:
bug 2026-04-06 19:59:32 +02:00 committed by GitHub
commit 63368e3202
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) {