avutil/audio_fifo: use av_freep() to avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 27 Dec 2014 14:49:13 +0000 (15:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 27 Dec 2014 14:49:13 +0000 (15:49 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/audio_fifo.c

index c3aadfd..574907a 100644 (file)
@@ -51,7 +51,7 @@ void av_audio_fifo_free(AVAudioFifo *af)
                 if (af->buf[i])
                     av_fifo_free(af->buf[i]);
             }
-            av_free(af->buf);
+            av_freep(&af->buf);
         }
         av_free(af);
     }