diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:36:40 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:36:40 +0000 |
commit | 2350e69ceef1d296d50ba799ecfe2c33110981ab (patch) | |
tree | 232bd423777ef8817afdd5e8dbcd193865f3ae92 /libavfilter | |
parent | f60208f4435582306b041bbea5fa91b03cffbb83 (diff) | |
download | ffmpeg-2350e69ceef1d296d50ba799ecfe2c33110981ab.tar.gz |
Use av_strdup/av_free instead of strdup/free
Commited in SoC by Bobby Bingham on 2007-07-14 20:13:57
Originally committed as revision 11989 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 3d7251a8e1..eaee0220cb 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -322,7 +322,7 @@ AVFilterContext *avfilter_create(AVFilter *filter, char *inst_name) ret->av_class = av_mallocz(sizeof(AVClass)); ret->av_class->item_name = filter_name; ret->filter = filter; - ret->name = inst_name ? strdup(inst_name) : NULL; + ret->name = inst_name ? av_strdup(inst_name) : NULL; ret->inputs = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->inputs)); ret->outputs = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->outputs)); ret->priv = av_mallocz(filter->priv_size); @@ -348,7 +348,7 @@ void avfilter_destroy(AVFilterContext *filter) av_free(filter->outputs[i]); } - free (filter->name); + av_free(filter->name); av_free(filter->inputs); av_free(filter->outputs); av_free(filter->priv); |