Mercurial > mplayer.hg
changeset 8499:e18f7b016a4a
fixed memleak caused by multiple config() calls - thx Gabu
author | arpi |
---|---|
date | Thu, 19 Dec 2002 22:33:59 +0000 |
parents | 32c0e766ab94 |
children | ae4c2ab3819f |
files | libmpcodecs/vf_pp.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)