# HG changeset patch # User reimar # Date 1151341267 0 # Node ID ac61a42feb47c9fac59a8027b75465b963906493 # Parent 1ff5eeb87dcedf5b0c7e1907ebddbf9f9ea91468 Avoid crash in uninit-without-config case diff -r 1ff5eeb87dce -r ac61a42feb47 libmpcodecs/vf_mcdeint.c --- a/libmpcodecs/vf_mcdeint.c Mon Jun 26 10:50:45 2006 +0000 +++ b/libmpcodecs/vf_mcdeint.c Mon Jun 26 17:01:07 2006 +0000 @@ -282,8 +282,10 @@ vf->priv->src[i]= NULL; } #endif + if (vf->priv->avctx_enc) { avcodec_close(vf->priv->avctx_enc); av_freep(&vf->priv->avctx_enc); + } free(vf->priv->outbuf); free(vf->priv);