OSDN Git Service

avcodec/flashsv: use av_freep() for tmpblock
authorPaul B Mahol <onemda@gmail.com>
Tue, 5 Nov 2013 12:56:59 +0000 (12:56 +0000)
committerPaul B Mahol <onemda@gmail.com>
Tue, 5 Nov 2013 13:19:30 +0000 (13:19 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/flashsv.c

index ee33060..6527dac 100644 (file)
@@ -482,7 +482,7 @@ static av_cold int flashsv_decode_end(AVCodecContext *avctx)
     av_frame_unref(&s->frame);
 
     /* free the tmpblock */
-    av_free(s->tmpblock);
+    av_freep(&s->tmpblock);
 
     return 0;
 }