Commit 4ee3ebc3 authored by Ludovic Fauvet's avatar Ludovic Fauvet

thumbnailer: variable use after deletion

Catched by CheckJNI running on Android 4.0 and later.
parent de41c9b0
......@@ -246,8 +246,6 @@ jbyteArray Java_org_videolan_vlc_LibVLC_getThumbnail(JNIEnv *env, jobject thiz,
(*env)->SetByteArrayRegion(env, byteArray, 0, thumbnailSize,
(jbyte *)sys->thumbnail);
(*env)->DeleteLocalRef(env, byteArray);
end:
pthread_mutex_destroy(&sys->doneMutex);
pthread_cond_destroy(&sys->doneCondVar);
......
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