[FFmpeg-devel] [PATCH 1/5] png: Use av_freep() instead of av_free()
Donny Yang
work at kota.moe
Sat Mar 28 16:14:21 CET 2015
Signed-off-by: Donny Yang <work at kota.moe>
---
libavcodec/pngenc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 9bdefc4..0231bf7 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:
--
2.3.4
More information about the ffmpeg-devel
mailing list