# HG changeset patch # User arpi # Date 1040337239 0 # Node ID e18f7b016a4a0fb2418e013cc8e882afa4406dae # Parent 32c0e766ab9478e87584dce1b8e2e918f9edd1f2 fixed memleak caused by multiple config() calls - thx Gabu diff -r 32c0e766ab94 -r e18f7b016a4a libmpcodecs/vf_pp.c --- a/libmpcodecs/vf_pp.c Thu Dec 19 21:37:21 2002 +0000 +++ b/libmpcodecs/vf_pp.c Thu Dec 19 22:33:59 2002 +0000 @@ -37,6 +37,7 @@ static int config(struct vf_instance_s* vf, int width, int height, int d_width, int d_height, unsigned int voflags, unsigned int outfmt){ + if(vf->priv->context) pp_free_context(vf->priv->context); vf->priv->context= pp_get_context(width, height, (gCpuCaps.hasMMX ? PP_CPU_CAPS_MMX : 0) | (gCpuCaps.hasMMX2 ? PP_CPU_CAPS_MMX2 : 0)