Commit c12384e3 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

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:
}
~LinphoneJavaBindings() {
JNIEnv *env = 0;
jvm->AttachCurrentThread(&env,NULL);
JNIEnv *env = ms_get_jni_env();
if (!env) {
ms_error("cannot attach VM");
}
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