Mercurial > libavcodec.hg
comparison loco.c @ 10413:8a137661f31e libavcodec
Do not try to free memory that was never allocated (partial revert of r20231).
author | cehoyos |
---|---|
date | Fri, 16 Oct 2009 15:16:59 +0000 |
parents | 136334ad62b3 |
children | 8a4984c5cacc |
comparison
equal
deleted
inserted
replaced
10412:9d31db7bec63 | 10413:8a137661f31e |
---|---|
279 LOCOContext * const l = avctx->priv_data; | 279 LOCOContext * const l = avctx->priv_data; |
280 AVFrame *pic = &l->pic; | 280 AVFrame *pic = &l->pic; |
281 | 281 |
282 if (pic->data[0]) | 282 if (pic->data[0]) |
283 avctx->release_buffer(avctx, pic); | 283 avctx->release_buffer(avctx, pic); |
284 av_freep(&l->pic); | |
285 | 284 |
286 return 0; | 285 return 0; |
287 } | 286 } |
288 | 287 |
289 AVCodec loco_decoder = { | 288 AVCodec loco_decoder = { |