OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38bb5a5
)
fifo: use av_freep()
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 9 May 2011 19:23:45 +0000
(21:23 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 9 May 2011 19:23:45 +0000
(21:23 +0200)
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>
libavutil/fifo.c
patch
|
blob
|
history
diff --git
a/libavutil/fifo.c
b/libavutil/fifo.c
index
cfb716e
..
d101989
100644
(file)
--- 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_free
p(&
f->buffer);
av_free(f);
}
}