Commit 00672d2c authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/rl2: clear freed pointers

Avoid leaving stale pointers in memory
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 51ddaf65
...@@ -207,7 +207,7 @@ static av_cold int rl2_decode_end(AVCodecContext *avctx) ...@@ -207,7 +207,7 @@ static av_cold int rl2_decode_end(AVCodecContext *avctx)
{ {
Rl2Context *s = avctx->priv_data; Rl2Context *s = avctx->priv_data;
av_free(s->back_frame); av_freep(&s->back_frame);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment