[libav-devel] [PATCH] libavformat: Free AVFormatContext-streams
After switching this from a statically allocated array to a dynamically allocated one in the major bump, this needs explicit freeing. --- Tested that it passes FATE, too. libavformat/utils.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 0c80ff6..19498b9 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2564,6 +2564,7 @@ void avformat_free_context(AVFormatContext *s) av_freep(s-chapters); av_metadata_free(s-metadata); av_freep(s-key); +av_freep(s-streams); av_free(s); } -- 1.7.2.5 ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel
Re: [libav-devel] [PATCH] libavformat: Free AVFormatContext-streams
Hi, On Wed, Apr 20, 2011 at 5:32 AM, Martin Storsjö mar...@martin.st wrote: After switching this from a statically allocated array to a dynamically allocated one in the major bump, this needs explicit freeing. --- Tested that it passes FATE, too. libavformat/utils.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 0c80ff6..19498b9 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2564,6 +2564,7 @@ void avformat_free_context(AVFormatContext *s) av_freep(s-chapters); av_metadata_free(s-metadata); av_freep(s-key); + av_freep(s-streams); av_free(s); } OK. Ronald ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel