Commit c12384e3 authored by Sylvain Berfini's avatar Sylvain Berfini 🐮
Browse files

Use ms_get_jni_env instead of doing it manually in java wrapper

parent dd287ef0
Pipeline #240 failed with stage
in 0 seconds
...@@ -205,8 +205,10 @@ public: ...@@ -205,8 +205,10 @@ public:
} }
~LinphoneJavaBindings() { ~LinphoneJavaBindings() {
JNIEnv *env = 0; JNIEnv *env = ms_get_jni_env();
jvm->AttachCurrentThread(&env,NULL); if (!env) {
ms_error("cannot attach VM");
}
env->DeleteGlobalRef(ms_factory_class); env->DeleteGlobalRef(ms_factory_class);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment