mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/avpicture: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fa8c6c1350
commit
f703c8cc09
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user