avcodec/mediacodec_wrapper: fix a local reference leak in ff_AMediaCodec_getName()

pull/317/head
Matthieu Bouron 6 years ago
parent 6251ad89a7
commit 9cb8875c16
  1. 4
      libavcodec/mediacodec_wrapper.c

@ -1337,6 +1337,10 @@ char *ff_AMediaCodec_getName(FFAMediaCodec *codec)
ret = ff_jni_jstring_to_utf_chars(env, name, codec);
fail:
if (name) {
(*env)->DeleteLocalRef(env, name);
}
return ret;
}

Loading…
Cancel
Save