pcm-dvd: use av_freep()
authorPaul B Mahol <onemda@gmail.com>
Sun, 1 Sep 2013 19:20:39 +0000 (19:20 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sun, 1 Sep 2013 19:20:39 +0000 (19:20 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/pcm-dvd.c

index e3906a2..d940565 100644 (file)
@@ -56,8 +56,7 @@ static av_cold int pcm_dvd_decode_uninit(AVCodecContext *avctx)
 {
     PCMDVDContext *s = avctx->priv_data;
 
-    if (s->extra_samples)
-        av_free(s->extra_samples);
+    av_freep(&s->extra_samples);
 
     return 0;
 }