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:
parent
b3067ac197
commit
da6c4573e9
1
ffplay.c
1
ffplay.c
@ -197,6 +197,7 @@ static void packet_queue_flush(PacketQueue *q)
|
|||||||
for(pkt = q->first_pkt; pkt != NULL; pkt = pkt1) {
|
for(pkt = q->first_pkt; pkt != NULL; pkt = pkt1) {
|
||||||
pkt1 = pkt->next;
|
pkt1 = pkt->next;
|
||||||
av_free_packet(&pkt->pkt);
|
av_free_packet(&pkt->pkt);
|
||||||
|
av_freep(&pkt);
|
||||||
}
|
}
|
||||||
q->last_pkt = NULL;
|
q->last_pkt = NULL;
|
||||||
q->first_pkt = NULL;
|
q->first_pkt = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user