Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
f703c8cc09
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/avpicture.c

+ 1
- 1
libavcodec/avpicture.c View File

@@ -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…
Cancel
Save