Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c12384e3
Commit
c12384e3
authored
Aug 09, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
wrappers/java/jni.mustache
wrappers/java/jni.mustache
+4
-2
No files found.
wrappers/java/jni.mustache
View file @
c12384e3
...
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment