Add logic to unregister the Godot plugins on engine termination
This commit is contained in:
@ -244,6 +244,7 @@ public:
|
||||
|
||||
~JNISingleton() {
|
||||
#ifdef ANDROID_ENABLED
|
||||
method_map.clear();
|
||||
if (instance) {
|
||||
JNIEnv *env = get_jni_env();
|
||||
ERR_FAIL_NULL(env);
|
||||
|
||||
Reference in New Issue
Block a user