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)
|
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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user