Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-08 18:09:31 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-10-08 18:09:31 +0400
commitf703c8cc0901f199455d848434d8932765dd2e5d (patch)
tree8334520d55ab833e8d9a402f75d151bf398ef30b /libavcodec/avpicture.c
parentfa8c6c13505cdea7ca7df44ac5a801962ebba1d2 (diff)
avcodec/avpicture: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avpicture.c')
-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,