[FFmpeg-cvslog] avcodec/wma: use av_freep(), do not leave stale pointers in memory

Michael Niedermayer git at videolan.org
Wed Jun 25 17:01:28 CEST 2014


ffmpeg | branch: release/2.0 | Michael Niedermayer <michaelni at gmx.at> | Sat Apr  5 21:34:03 2014 +0200| [5805c0c2b6cf4d8c621acb76fd16b611e6599bd3] | committer: Michael Niedermayer

avcodec/wma: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit d167faafe9dfa0b82bebb267c3c4e5fa5286bd67)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5805c0c2b6cf4d8c621acb76fd16b611e6599bd3
---

 libavcodec/wma.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/wma.c b/libavcodec/wma.c
index b6dab4b..696157d 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;



More information about the ffmpeg-cvslog mailing list