Commit b80073c0 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: use av_freep() instead of av_free()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ed56c021
...@@ -2090,7 +2090,7 @@ av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx) ...@@ -2090,7 +2090,7 @@ av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx)
} else if (s->picture_ptr) } else if (s->picture_ptr)
av_frame_unref(s->picture_ptr); av_frame_unref(s->picture_ptr);
av_free(s->buffer); av_freep(&s->buffer);
av_freep(&s->stereo3d); av_freep(&s->stereo3d);
av_freep(&s->ljpeg_buffer); av_freep(&s->ljpeg_buffer);
s->ljpeg_buffer_size = 0; s->ljpeg_buffer_size = 0;
......
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