Mercurial > libavcodec.hg
comparison wnv1.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 | bdf4a9ca162a |
comparison
equal
deleted
inserted
replaced
10412:9d31db7bec63 | 10413:8a137661f31e |
---|---|
147 WNV1Context * const l = avctx->priv_data; | 147 WNV1Context * const l = avctx->priv_data; |
148 AVFrame *pic = &l->pic; | 148 AVFrame *pic = &l->pic; |
149 | 149 |
150 if (pic->data[0]) | 150 if (pic->data[0]) |
151 avctx->release_buffer(avctx, pic); | 151 avctx->release_buffer(avctx, pic); |
152 av_freep(&l->pic); | |
153 | 152 |
154 return 0; | 153 return 0; |
155 } | 154 } |
156 | 155 |
157 AVCodec wnv1_decoder = { | 156 AVCodec wnv1_decoder = { |