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:
parent
68bcc64f74
commit
5904d039ce
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user