1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Originally committed as revision 3396 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-08-16 23:17:32 +00:00
parent b3067ac197
commit da6c4573e9

View File

@ -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;