Skip to content
Snippets Groups Projects
Commit 17354407 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

fifo: use av_freep()


With this change libavutil uses av_freep() everywhere where it makes sense.
Remaining av_free() use in it has the used pointer become inaccessible quickly
soo zeroing makes no sense.
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 38bb5a54
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ AVFifoBuffer *av_fifo_alloc(unsigned int size)
void av_fifo_free(AVFifoBuffer *f)
{
if(f){
av_free(f->buffer);
av_freep(&f->buffer);
av_free(f);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment