Browse Source

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: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
Michael Niedermayer 14 years ago
parent
commit
1735440773
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/fifo.c

+ 1
- 1
libavutil/fifo.c View File

@@ -38,7 +38,7 @@ AVFifoBuffer *av_fifo_alloc(unsigned int size)
void av_fifo_free(AVFifoBuffer *f) void av_fifo_free(AVFifoBuffer *f)
{ {
if(f){ if(f){
av_free(f->buffer);
av_freep(&f->buffer);
av_free(f); av_free(f);
} }
} }


Loading…
Cancel
Save