Mercurial > libavcodec.hg
comparison xl.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 |
---|---|
132 VideoXLContext * const a = avctx->priv_data; | 132 VideoXLContext * const a = avctx->priv_data; |
133 AVFrame *pic = &a->pic; | 133 AVFrame *pic = &a->pic; |
134 | 134 |
135 if (pic->data[0]) | 135 if (pic->data[0]) |
136 avctx->release_buffer(avctx, pic); | 136 avctx->release_buffer(avctx, pic); |
137 av_freep(&a->pic); | |
138 | 137 |
139 return 0; | 138 return 0; |
140 } | 139 } |
141 | 140 |
142 AVCodec xl_decoder = { | 141 AVCodec xl_decoder = { |