Skip to content

Commit

Permalink
Fix crash in msjava.c regarding releasing JNI references.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmen Alvarez committed Jul 28, 2016
1 parent 518dba1 commit 594d505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/msjava.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static pthread_key_t jnienv_key;
* (see LinphoneCoreFactory.setLogHandler() ).
**/
void _android_key_cleanup(void *data){
JNIEnv* env=(JNIEnv*)pthread_getspecific(jnienv_key);
JNIEnv *env = (JNIEnv*) data;

if (env != NULL) {
ms_message("Thread end, detaching jvm from current thread");
Expand Down Expand Up @@ -102,4 +102,4 @@ JNIEXPORT void JNICALL Java_org_linphone_mediastream_Log_e(JNIEnv* env, jobject
if (msg) (*env)->ReleaseStringUTFChars(env, jmsg, msg);
}

#endif
#endif

0 comments on commit 594d505

Please sign in to comment.