diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:38:29 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:38:29 +0000 |
commit | f4cb446216a16f214aee8844be6e95d5f059db76 (patch) | |
tree | 3942300c91cc42e66b1b724e898acac8922e9f3b /libavfilter/avfilter.c | |
parent | 44b73497d31ffad6e0c89927006edeb58654fac3 (diff) | |
download | ffmpeg-f4cb446216a16f214aee8844be6e95d5f059db76.tar.gz |
Use av_freep instead of av_free
Commited in SoC by Bobby Bingham on 2007-08-17 23:43:23
Originally committed as revision 12015 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 08007dc221..32b2cefc4c 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -337,21 +337,21 @@ void avfilter_destroy(AVFilterContext *filter) for(i = 0; i < filter->input_count; i ++) { if(filter->inputs[i]) filter->inputs[i]->src->outputs[filter->inputs[i]->srcpad] = NULL; - av_free(filter->inputs[i]); + av_freep(&filter->inputs[i]); } for(i = 0; i < filter->output_count; i ++) { if(filter->outputs[i]) filter->outputs[i]->dst->inputs[filter->outputs[i]->dstpad] = NULL; - av_free(filter->outputs[i]); + av_freep(&filter->outputs[i]); } - av_free(filter->name); - av_free(filter->input_pads); - av_free(filter->output_pads); - av_free(filter->inputs); - av_free(filter->outputs); - av_free(filter->priv); - av_free(filter->av_class); + av_freep(&filter->name); + av_freep(&filter->input_pads); + av_freep(&filter->output_pads); + av_freep(&filter->inputs); + av_freep(&filter->outputs); + av_freep(&filter->priv); + av_freep(&filter->av_class); av_free(filter); } |