avcodec/crystalhd: use av_freep() to avoid stale pointers

this leaves some av_free() where the pointer is overwritten
shortly later

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/71/merge
Michael Niedermayer 10 years ago
parent adfc3b81b1
commit a1cb8779e2
  1. 2
      libavcodec/crystalhd.c

@ -362,7 +362,7 @@ static av_cold int uninit(AVCodecContext *avctx)
av_bitstream_filter_close(priv->bsfc);
}
av_free(priv->sps_pps_buf);
av_freep(&priv->sps_pps_buf);
av_frame_free (&priv->pic);

Loading…
Cancel
Save