Commit f703c8cc authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/avpicture: use av_freep(), do not leave stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fa8c6c13
...@@ -66,7 +66,7 @@ int avpicture_alloc(AVPicture *picture, ...@@ -66,7 +66,7 @@ int avpicture_alloc(AVPicture *picture,
void avpicture_free(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, void av_picture_copy(AVPicture *dst, const AVPicture *src,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment