Mercurial > mplayer.hg
changeset 9522:cf2324339983
Add missing uninit
author | albeu |
---|---|
date | Tue, 04 Mar 2003 13:26:09 +0000 |
parents | 7de2fabb1fa2 |
children | fb5148509f8b |
files | libmpcodecs/ve_nuv.c |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_nuv.c Mon Mar 03 16:43:43 2003 +0000 +++ b/libmpcodecs/ve_nuv.c Tue Mar 04 13:26:09 2003 +0000 @@ -176,6 +176,17 @@ return 1; } +static void uninit(struct vf_instance_s* vf) { + + if(vf->priv->buffer) + free(vf->priv->buffer); + if(vf->priv->zbuffer) + free(vf->priv->zbuffer); + if(vf->priv->zmem) + free(vf->priv->zmem); + +} + //===========================================================================// static int vf_open(vf_instance_t *vf, char* args){ @@ -183,9 +194,9 @@ vf->control=control; vf->query_format=query_format; vf->put_image=put_image; + vf->uninit = uninit; vf->priv=malloc(sizeof(struct vf_priv_s)); memcpy(vf->priv, &nuv_priv_dflt,sizeof(struct vf_priv_s)); - //memset(vf->priv,0,sizeof(struct vf_priv_s)); vf->priv->mux=(muxer_stream_t*)args; mux_v->bih=malloc(sizeof(BITMAPINFOHEADER));