diff options
| author | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2024-05-19 15:48:30 -0700 |
|---|---|---|
| committer | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2024-05-19 19:27:04 -0700 |
| commit | 5a74e5812b3de4bd979f40f04e14e50a2bdaa386 (patch) | |
| tree | 4c5a58e56339118919ac62cd1fdc72a892049f1c /platform/android/java_godot_lib_jni.cpp | |
| parent | daa81bbb7d1c6d75d1711595604178ee62a5801d (diff) | |
| download | redot-engine-5a74e5812b3de4bd979f40f04e14e50a2bdaa386.tar.gz | |
Add logic to unregister the Godot plugins on engine termination
Diffstat (limited to 'platform/android/java_godot_lib_jni.cpp')
| -rw-r--r-- | platform/android/java_godot_lib_jni.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/android/java_godot_lib_jni.cpp b/platform/android/java_godot_lib_jni.cpp index 6cab7e74fd..93743c4e35 100644 --- a/platform/android/java_godot_lib_jni.cpp +++ b/platform/android/java_godot_lib_jni.cpp @@ -42,6 +42,7 @@ #include "jni_utils.h" #include "net_socket_android.h" #include "os_android.h" +#include "plugin/godot_plugin_jni.h" #include "string_android.h" #include "thread_jandroid.h" #include "tts_android.h" @@ -78,6 +79,9 @@ static void _terminate(JNIEnv *env, bool p_restart = false) { step.set(-1); // Ensure no further steps are attempted and no further events are sent // lets cleanup + // Unregister android plugins + unregister_plugins_singletons(); + if (java_class_wrapper) { memdelete(java_class_wrapper); } |
