# HG changeset patch # User jai_menon # Date 1262927357 0 # Node ID e58e93f04279a5099dac4393716df1edad4269a6 # Parent 55a1d93c534ca4938a4ba7d2b3b4ccd8a31a9d69 Snow : release buffers allocated using avctx->get_buffer. diff -r 55a1d93c534c -r e58e93f04279 snow.c --- a/snow.c Fri Jan 08 05:08:02 2010 +0000 +++ b/snow.c Fri Jan 08 05:09:17 2010 +0000 @@ -2719,6 +2719,10 @@ } } } + if (s->mconly_picture.data[0]) + s->avctx->release_buffer(s->avctx, &s->mconly_picture); + if (s->current_picture.data[0]) + s->avctx->release_buffer(s->avctx, &s->current_picture); } static av_cold int decode_init(AVCodecContext *avctx) @@ -4681,6 +4685,8 @@ SnowContext *s = avctx->priv_data; common_end(s); + if (s->input_picture.data[0]) + avctx->release_buffer(avctx, &s->input_picture); av_free(avctx->stats_out); return 0;