diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-09 21:23:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-09 21:23:45 +0200 |
commit | 173544077316c448cefc79c7e595021b41249a1a (patch) | |
tree | 9ea2d9c4950e4ac3bc80e57a995dea94bcd66c1a /libavutil/fifo.c | |
parent | 38bb5a5434f913451aa512624a92b12b9925690f (diff) | |
download | ffmpeg-173544077316c448cefc79c7e595021b41249a1a.tar.gz |
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>
Diffstat (limited to 'libavutil/fifo.c')
-rw-r--r-- | libavutil/fifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/fifo.c b/libavutil/fifo.c index cfb716e53b..d10198972d 100644 --- a/libavutil/fifo.c +++ b/libavutil/fifo.c @@ -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); } } |