diff options
author | Donny Yang <work@kota.moe> | 2015-03-28 18:14:21 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-28 19:16:55 +0300 |
commit | 5904d039ce785e0b9b28f8664c6fc493c60f6e8d (patch) | |
tree | 6837b557afb254e5a1d9a970bea176bcea80b76a /libavcodec/pngenc.c | |
parent | 68bcc64f74aa084e6d75e54deba54bc0a657c8a3 (diff) |
png: Use av_freep() instead of av_free()
Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pngenc.c')
-rw-r--r-- | libavcodec/pngenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index 9bdefc45d3..0231bf7c3b 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -512,9 +512,9 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, ret = 0; the_end: - av_free(crow_base); - av_free(progressive_buf); - av_free(top_buf); + av_freep(&crow_base); + av_freep(&progressive_buf); + av_freep(&top_buf); deflateEnd(&s->zstream); return ret; fail: |