Commit da6c4573 authored by Michael Niedermayer's avatar Michael Niedermayer

memleak found by ("wxWindows_study" <quicktime2008 at hotmail dot com>)

Originally committed as revision 3396 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b3067ac1
......@@ -197,6 +197,7 @@ static void packet_queue_flush(PacketQueue *q)
for(pkt = q->first_pkt; pkt != NULL; pkt = pkt1) {
pkt1 = pkt->next;
av_free_packet(&pkt->pkt);
av_freep(&pkt);
}
q->last_pkt = NULL;
q->first_pkt = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment