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
Unified · Split
| @@ -32,13 +32,18 @@ AVFilterGraph *avfilter_create_graph(void) · 31 unmodified lines | |||
| 32 | return av_mallocz(sizeof(AVFilterGraph)); | 32 | return av_mallocz(sizeof(AVFilterGraph)); |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | void avfilter_destroy_graph(AVFilterGraph *graph) | 35 | static void destroy_graph_filters(AVFilterGraph *graph) |
| 36 | { | 36 | { |
| 37 | unsigned i; | 37 | unsigned i; |
| 38 | 38 | ||
| 39 | for(i = 0; i < graph->filter_count; i ++) | 39 | for(i = 0; i < graph->filter_count; i ++) |
| 40 | avfilter_destroy(graph->filters[i]); | 40 | 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); | ||
| 42 | av_free(graph); | 47 | av_free(graph); |
| 43 | } | 48 | } |
| 44 | 49 | ||