Mercurial > libavcodec.hg
comparison qdrw.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 |
---|---|
144 QdrawContext * const a = avctx->priv_data; | 144 QdrawContext * const a = avctx->priv_data; |
145 AVFrame *pic = &a->pic; | 145 AVFrame *pic = &a->pic; |
146 | 146 |
147 if (pic->data[0]) | 147 if (pic->data[0]) |
148 avctx->release_buffer(avctx, pic); | 148 avctx->release_buffer(avctx, pic); |
149 av_freep(&a->pic); | |
150 | 149 |
151 return 0; | 150 return 0; |
152 } | 151 } |
153 | 152 |
154 AVCodec qdraw_decoder = { | 153 AVCodec qdraw_decoder = { |