# HG changeset patch # User reimar # Date 1351276791 0 # Node ID 327e3968a50bcf5eb92bb1da08f60e5f36fd9386 # Parent 51b77c9a11ef7f7a97fdf989f342f4209902c0a9 Make uninit function handle vf->priv being NULL. This happens in the case where memory allocation for it fails. diff -r 51b77c9a11ef -r 327e3968a50b libmpcodecs/vf_phase.c --- a/libmpcodecs/vf_phase.c Fri Oct 26 18:31:11 2012 +0000 +++ b/libmpcodecs/vf_phase.c Fri Oct 26 18:39:51 2012 +0000 @@ -242,6 +242,8 @@ static void uninit(struct vf_instance *vf) { + if (!vf->priv) + return; free(vf->priv->buf[0]); free(vf->priv->buf[1]); free(vf->priv->buf[2]);