Commit 28ade0c3 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Fix jni leak in mediacodec

parent bcada9eb
......@@ -489,6 +489,7 @@ AMediaFormat* AMediaCodec_getOutputFormat(AMediaCodec *codec){
}
env->DeleteLocalRef(mediaCodecClass);
format->jformat = env->NewGlobalRef(jformat);
env->DeleteLocalRef(jformat);
return format;
}
......
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