Commit 0bcea995 authored by vitor's avatar vitor

Use av_strdup/av_free instead of strdup/free

Commited in SoC by Bobby Bingham on 2007-07-14 20:13:57


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11989 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c4280849
...@@ -322,7 +322,7 @@ AVFilterContext *avfilter_create(AVFilter *filter, char *inst_name) ...@@ -322,7 +322,7 @@ AVFilterContext *avfilter_create(AVFilter *filter, char *inst_name)
ret->av_class = av_mallocz(sizeof(AVClass)); ret->av_class = av_mallocz(sizeof(AVClass));
ret->av_class->item_name = filter_name; ret->av_class->item_name = filter_name;
ret->filter = filter; 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->inputs = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->inputs));
ret->outputs = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->outputs)); ret->outputs = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->outputs));
ret->priv = av_mallocz(filter->priv_size); ret->priv = av_mallocz(filter->priv_size);
...@@ -348,7 +348,7 @@ void avfilter_destroy(AVFilterContext *filter) ...@@ -348,7 +348,7 @@ void avfilter_destroy(AVFilterContext *filter)
av_free(filter->outputs[i]); av_free(filter->outputs[i]);
} }
free (filter->name); av_free(filter->name);
av_free(filter->inputs); av_free(filter->inputs);
av_free(filter->outputs); av_free(filter->outputs);
av_free(filter->priv); av_free(filter->priv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment