avcodec/snow: clear freed pointers

Avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2014-11-16 23:34:40 +01:00
parent 00672d2ce5
commit 7ababb85f9
2 changed files with 4 additions and 2 deletions

View File

@@ -1862,7 +1862,7 @@ static av_cold int encode_end(AVCodecContext *avctx)
ff_snow_common_end(s);
ff_rate_control_uninit(&s->m);
av_frame_free(&s->input_picture);
av_free(avctx->stats_out);
av_freep(&avctx->stats_out);
return 0;
}