From patchwork Wed Apr 20 09:32:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: libavformat: Free AVFormatContext->streams X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 2402 Message-Id: <1303291935-74806-1-git-send-email-martin@martin.st> To: libav-devel@libav.org Date: Wed, 20 Apr 2011 12:32:15 +0300 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= List-Id: libav development 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); }