History

Move destruction of the graph's filters to its own helper function.

Commited in SoC by Bobby Bingham on 2007-07-14 21:41:34 Originally committed as revision 12687 to svn://svn.ffmpeg.org/ffmpeg/trunk

Vitor Sessak committed 18 years ago

Commit ffcaef31 parent eccb6fb1 file · +7 −2Browse files

Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all

Unified · Split

libavfilter/avfiltergraph.c+7−2
@@ -32,13 +32,18 @@ AVFilterGraph *avfilter_create_graph(void) · 31 unmodified lines
3232 return av_mallocz(sizeof(AVFilterGraph));
3333 }
3434
35−void avfilter_destroy_graph(AVFilterGraph *graph)
35+static void destroy_graph_filters(AVFilterGraph *graph)
3636 {
3737 unsigned i;
3838
3939 for(i = 0; i < graph->filter_count; i ++)
4040 avfilter_destroy(graph->filters[i]);
41− av_free(graph->filters);
41+ av_freep(&graph->filters);
42+}
43+
44+void avfilter_destroy_graph(AVFilterGraph *graph)
45+{
46+ destroy_graph_filters(graph);
4247 av_free(graph);
4348 }
4449

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t