Android: Remove unnecessary ANativeWindow_release call

This is already handled by SurfaceDestroyed. In the worst case,
the extra code could even race with SurfaceDestroyed if they
are triggered at the same time, but this is highly improbable.
This commit is contained in:
JosJuice 2020-11-06 23:05:23 +01:00
parent d982afd1ef
commit 8181a7b3dd
1 changed files with 0 additions and 6 deletions

View File

@ -543,12 +543,6 @@ static void Run(JNIEnv* env, const std::vector<std::string>& paths,
ButtonManager::Shutdown();
host_identity_guard.unlock();
if (s_surf)
{
ANativeWindow_release(s_surf);
s_surf = nullptr;
}
env->CallStaticVoidMethod(IDCache::GetNativeLibraryClass(),
IDCache::GetFinishEmulationActivity());
}