avcodec/eatqi: use av_freep(), do not leave stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 12 Oct 2014 10:22:00 +0000 (12:22 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 12 Oct 2014 10:22:16 +0000 (12:22 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/eatqi.c

index 864291a..b8e4d7c 100644 (file)
@@ -149,7 +149,7 @@ static int tqi_decode_frame(AVCodecContext *avctx,
 static av_cold int tqi_decode_end(AVCodecContext *avctx)
 {
     TqiContext *t = avctx->priv_data;
-    av_free(t->bitstream_buf);
+    av_freep(&t->bitstream_buf);
     return 0;
 }