From: Matthieu Bouron <matthieu.bou...@stupeflix.com>

---
 libavcodec/mediacodec_wrapper.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
index 053c164..c847a11 100644
--- a/libavcodec/mediacodec_wrapper.c
+++ b/libavcodec/mediacodec_wrapper.c
@@ -122,6 +122,7 @@ char *ff_AMediaCodecList_getCodecNameByType(const char 
*mime, int width, int hei
             goto done;
         }
         (*env)->DeleteLocalRef(env, tmp);
+        tmp = NULL;
 
         codec = (*env)->NewObject(env, jfields.mediacodec_list_class, 
jfields.init_id, 0);
         if (ff_jni_exception_check(env, 1, log_ctx) < 0) {
-- 
2.8.3

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to