avcodec/vmnc: use av_freep()
authorPaul B Mahol <onemda@gmail.com>
Wed, 9 Oct 2013 12:21:14 +0000 (12:21 +0000)
committerPaul B Mahol <onemda@gmail.com>
Wed, 9 Oct 2013 12:54:45 +0000 (12:54 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/vmnc.c

index 787c381..f42be7f 100644 (file)
@@ -517,9 +517,9 @@ static av_cold int decode_end(AVCodecContext *avctx)
 
     av_frame_free(&c->frame);
 
-    av_free(c->curbits);
-    av_free(c->curmask);
-    av_free(c->screendta);
+    av_freep(&c->curbits);
+    av_freep(&c->curmask);
+    av_freep(&c->screendta);
     return 0;
 }