forked from dolphin-emu/dolphin
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:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user