Browse Source

avcodec/h264_parser: Use av_freep() to avoid leaving stale pointers

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

+ 1
- 1
libavcodec/h264_parser.c View File

@@ -547,7 +547,7 @@ static void close(AVCodecParserContext *s)
H264Context *h = s->priv_data;
ParseContext *pc = &h->parse_context;

av_free(pc->buffer);
av_freep(&pc->buffer);
ff_h264_free_context(h);
}



Loading…
Cancel
Save