You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add logic to unregister the Godot plugins on engine termination
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user