diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-05 21:34:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-05 21:34:03 +0200 |
commit | d167faafe9dfa0b82bebb267c3c4e5fa5286bd67 (patch) | |
tree | f019e8871e53017e09c8db70ca69afc1e5b73da4 /libavcodec | |
parent | 26e70fd5ba50443fde738a606322d3fba0cc4985 (diff) | |
download | ffmpeg-d167faafe9dfa0b82bebb267c3c4e5fa5286bd67.tar.gz |
avcodec/wma: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/wma.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/wma.c b/libavcodec/wma.c index 0122ee6fe3..b6d6351acf 100644 --- a/libavcodec/wma.c +++ b/libavcodec/wma.c @@ -386,9 +386,9 @@ int ff_wma_end(AVCodecContext *avctx) } for (i = 0; i < 2; i++) { ff_free_vlc(&s->coef_vlc[i]); - av_free(s->run_table[i]); - av_free(s->level_table[i]); - av_free(s->int_table[i]); + av_freep(&s->run_table[i]); + av_freep(&s->level_table[i]); + av_freep(&s->int_table[i]); } return 0; |