avcodec/cdxl: use av_freep()
authorPaul B Mahol <onemda@gmail.com>
Sat, 14 Sep 2013 10:45:14 +0000 (10:45 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sat, 14 Sep 2013 10:45:14 +0000 (10:45 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/cdxl.c

index 468b294..e6bcaea 100644 (file)
@@ -291,7 +291,7 @@ static av_cold int cdxl_decode_end(AVCodecContext *avctx)
 {
     CDXLVideoContext *c = avctx->priv_data;
 
-    av_free(c->new_video);
+    av_freep(&c->new_video);
 
     return 0;
 }