aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-08 16:09:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-08 16:09:31 +0200
commitf703c8cc0901f199455d848434d8932765dd2e5d (patch)
tree8334520d55ab833e8d9a402f75d151bf398ef30b
parentfa8c6c13505cdea7ca7df44ac5a801962ebba1d2 (diff)
downloadffmpeg-f703c8cc0901f199455d848434d8932765dd2e5d.tar.gz
avcodec/avpicture: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/avpicture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avpicture.c b/libavcodec/avpicture.c
index a6f89ef884..0484dc3f7b 100644
--- a/libavcodec/avpicture.c
+++ b/libavcodec/avpicture.c
@@ -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,