memleak found by ("wxWindows_study" <quicktime2008 at hotmail dot com>)
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Aug 2004 23:17:32 +0000 (23:17 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Aug 2004 23:17:32 +0000 (23:17 +0000)
Originally committed as revision 3396 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffplay.c

index fe54076..bfff450 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -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;