diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-31 15:36:19 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-31 15:36:19 +0300 |
commit | 0c6c5d7bcb1b616161a98356495adaeed2568dda (patch) | |
tree | d1d0633944b81b3012669452c93ca61aa1f10e50 | |
parent | d15a94ba202d634e427703c4530c97a20106d6d7 (diff) |
avcodec/mjpegenc: use av_freep(), avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mjpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index 0fb3a17fc3..14701e22f4 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -78,7 +78,7 @@ av_cold int ff_mjpeg_encode_init(MpegEncContext *s) void ff_mjpeg_encode_close(MpegEncContext *s) { - av_free(s->mjpeg_ctx); + av_freep(&s->mjpeg_ctx); } static void encode_block(MpegEncContext *s, int16_t *block, int n) |