Imported Debian version 2.5.0~trusty1.1
[deb_ffmpeg.git] / ffmpeg / libavcodec / avpicture.c
index a6f89ef884a36fa583c404e475cf760e20c06d51..0484dc3f7bd377d111bb715e3749a019f8d07651 100644 (file)
@@ -66,7 +66,7 @@ int avpicture_alloc(AVPicture *picture,
 
 void avpicture_free(AVPicture *picture)
 {
-    av_free(picture->data[0]);
+    av_freep(&picture->data[0]);
 }
 
 void av_picture_copy(AVPicture *dst, const AVPicture *src,