png: Use av_freep() instead of av_free()

Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Donny Yang 2015-03-28 15:14:21 +00:00 committed by Michael Niedermayer
parent 68bcc64f74
commit 5904d039ce

View File

@ -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: