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>
pull/2/head
Martin Storsjö 14 years ago
parent c60112f268
commit 7bbb67d580
  1. 1
      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);
}

Loading…
Cancel
Save