Commit 31fe3c4d authored by Matthieu Bouron's avatar Matthieu Bouron

lavc/mediacodec: fix codec_name leak

parent a68d4bf2
......@@ -566,5 +566,7 @@ int ff_mediacodec_dec_close(AVCodecContext *avctx, MediaCodecDecContext *s)
s->format = NULL;
}
av_freep(&s->codec_name);
return 0;
}
......@@ -34,7 +34,7 @@
typedef struct MediaCodecDecContext {
const char *codec_name;
char *codec_name;
FFAMediaCodec *codec;
FFAMediaFormat *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