snowenc: Fix memleak of the ratecontrol related memory
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 28 Aug 2013 18:53:21 +0000 (20:53 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 28 Aug 2013 18:53:21 +0000 (20:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/snowenc.c

index 33d7685..3a113d0 100644 (file)
@@ -1963,6 +1963,7 @@ static av_cold int encode_end(AVCodecContext *avctx)
     SnowContext *s = avctx->priv_data;
 
     ff_snow_common_end(s);
+    ff_rate_control_uninit(&s->m);
     av_frame_unref(&s->input_picture);
     av_free(avctx->stats_out);