diff options
| author | JosJuice <josjuice@gmail.com> | 2020-11-06 23:05:23 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2020-11-09 10:38:50 +0100 |
| commit | 8181a7b3dd932a3035b9fc56f6def70c0cc05c59 (patch) | |
| tree | c754b7716ecfa42a475fc74cb10c3f2dffcba240 /Source/Android/jni/MainAndroid.cpp | |
| parent | d982afd1eff1b7ce8c8c8c969f49d12b3b763098 (diff) | |
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.
Diffstat (limited to 'Source/Android/jni/MainAndroid.cpp')
| -rw-r--r-- | Source/Android/jni/MainAndroid.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index 9e2950b630..6fe6da3b61 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -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()); } |
