summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-04-20 12:03:55 +0300
committerMartin Storsjö <martin@martin.st>2011-04-20 15:42:55 +0300
commit7bbb67d58005f3c0384f657570fabcdc0bc8cc21 (patch)
treeb54ccc12411433ccecb34fb753ec197ecd14a57b /libavformat
parentc60112f26873afafb55d24cc50a0e93ad9411373 (diff)
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. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 0c80ff618e..19498b96a4 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);
}