mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 11:35:54 +00:00
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
1 changed files with 0 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue