Commit 7b0def9d authored by Geoffrey Métais's avatar Geoffrey Métais

Recording: avoid null ref release

parent 42680658
......@@ -1103,7 +1103,10 @@ Java_org_videolan_libvlc_MediaPlayer_nativeRecord(JNIEnv *env, jobject thiz,
jboolean ret = record_func(p_obj->u.p_mp, psz_directory) == 0;
(*env)->ReleaseStringUTFChars(env, jdirectory, psz_directory);
if (psz_directory)
{
(*env)->ReleaseStringUTFChars(env, jdirectory, psz_directory);
}
return ret;
}
......
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