Commit 5904d039 authored by Donny Yang's avatar Donny Yang Committed by Michael Niedermayer

png: Use av_freep() instead of av_free()

Signed-off-by: 's avatarDonny Yang <work@kota.moe>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 68bcc64f
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment