comparison indeo2.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
217 Ir2Context * const ic = avctx->priv_data; 217 Ir2Context * const ic = avctx->priv_data;
218 AVFrame *pic = &ic->picture; 218 AVFrame *pic = &ic->picture;
219 219
220 if (pic->data[0]) 220 if (pic->data[0])
221 avctx->release_buffer(avctx, pic); 221 avctx->release_buffer(avctx, pic);
222 av_freep(&ic->picture);
223 222
224 return 0; 223 return 0;
225 } 224 }
226 225
227 AVCodec indeo2_decoder = { 226 AVCodec indeo2_decoder = {