[FFmpeg-devel] [PATCH] avfiltergraph: free the sink_links heap.
Michael Niedermayer
michaelni at gmx.at
Mon Apr 23 23:30:43 CEST 2012
On Mon, Apr 23, 2012 at 11:27:56PM +0200, Nicolas George wrote:
>
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
> libavfilter/avfiltergraph.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
> index ef597dd..23d4042 100644
> --- a/libavfilter/avfiltergraph.c
> +++ b/libavfilter/avfiltergraph.c
> @@ -55,6 +55,7 @@ void avfilter_graph_free(AVFilterGraph **graph)
> return;
> for (; (*graph)->filter_count > 0; (*graph)->filter_count--)
> avfilter_free((*graph)->filters[(*graph)->filter_count - 1]);
> + av_freep(&(*graph)->sink_links);
> av_freep(&(*graph)->scale_sws_opts);
> av_freep(&(*graph)->filters);
> av_freep(graph);
LGTM
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120423/d68961ba/attachment.asc>
More information about the ffmpeg-devel
mailing list