summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-15 19:48:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-15 19:48:28 +0200
commit9c712d0b1608ec998dbe41d81a79f3fb7ea32b4d (patch)
tree55fbdd83d259b79baba04055495cff2d67c57c47 /libavformat/utils.c
parent609d5db8035c868be034892a33762779a40ab8b9 (diff)
vformat/utils: call flush_packet_queue() from avformat_free_context()
This avoids some theoretical memleaks Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 34eca17ec9..b4ca342898 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3525,7 +3525,7 @@ void avformat_free_context(AVFormatContext *s)
av_dict_free(&s->metadata);
av_freep(&s->streams);
av_freep(&s->internal);
- free_packet_buffer(&s->packet_buffer, &s->packet_buffer_end);
+ flush_packet_queue(s);
av_free(s);
}