Browse Source

avutil/audio_fifo: use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
6d639ecf44
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/audio_fifo.c

+ 1
- 1
libavutil/audio_fifo.c View 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);
}


Loading…
Cancel
Save