Mercurial > libavcodec.hg
comparison parser.c @ 8040:def5fcc1d40e libavcodec
Use av_freep() in ff_parse_close().
| author | michael |
|---|---|
| date | Mon, 20 Oct 2008 09:02:55 +0000 |
| parents | b5f5257c0c70 |
| children | 8c1e1047ec78 |
comparison
equal
deleted
inserted
replaced
| 8039:d17ee125add1 | 8040:def5fcc1d40e |
|---|---|
| 289 | 289 |
| 290 void ff_parse_close(AVCodecParserContext *s) | 290 void ff_parse_close(AVCodecParserContext *s) |
| 291 { | 291 { |
| 292 ParseContext *pc = s->priv_data; | 292 ParseContext *pc = s->priv_data; |
| 293 | 293 |
| 294 av_free(pc->buffer); | 294 av_freep(&pc->buffer); |
| 295 } | 295 } |
| 296 | 296 |
| 297 void ff_parse1_close(AVCodecParserContext *s) | 297 void ff_parse1_close(AVCodecParserContext *s) |
| 298 { | 298 { |
| 299 ParseContext1 *pc1 = s->priv_data; | 299 ParseContext1 *pc1 = s->priv_data; |
