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:
parent
d982afd1ef
commit
8181a7b3dd
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue