Skip to content
Snippets Groups Projects
Commit 9c712d0b authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

vformat/utils: call flush_packet_queue() from avformat_free_context()


This avoids some theoretical memleaks

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 609d5db8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment