From 5bed94e5526ac8d4fdad78c450d0197a2b975c6f Mon Sep 17 00:00:00 2001 From: maxli Date: Fri, 12 Jul 2024 17:40:51 +0800 Subject: [PATCH] fix(android): erase NativeRenderManager when destroy --- .../android/src/main/cpp/src/renderer/native_render_manager.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/renderer/native/android/src/main/cpp/src/renderer/native_render_manager.cc b/renderer/native/android/src/main/cpp/src/renderer/native_render_manager.cc index 18457c3fb42..dc2bf6f4805 100644 --- a/renderer/native/android/src/main/cpp/src/renderer/native_render_manager.cc +++ b/renderer/native/android/src/main/cpp/src/renderer/native_render_manager.cc @@ -110,6 +110,7 @@ void NativeRenderManager::DestroyRenderDelegate(JNIEnv* j_env) { j_env->CallVoidMethod(j_object, j_method_id); JNIEnvironment::ClearJEnvException(j_env); j_env->DeleteLocalRef(j_class); + persistent_map_.Erase(id_); } void NativeRenderManager::InitDensity() {