changeset 9443:7df93217d82c

minor 1l I forgot to commit a while back
author rfelker
date Sun, 16 Feb 2003 07:05:24 +0000
parents 8e205102fc8a
children 52a4dc4ba216
files libmpcodecs/vf_field.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_field.c	Sun Feb 16 01:23:10 2003 +0000
+++ b/libmpcodecs/vf_field.c	Sun Feb 16 07:05:24 2003 +0000
@@ -51,11 +51,15 @@
 
 //===========================================================================//
 
-// FIXME - do we need to free dmpi on uninit?
+static void uninit(struct vf_instance_s* vf)
+{
+	free(vf->priv);
+}
 
 static int open(vf_instance_t *vf, char* args){
     vf->config=config;
     vf->put_image=put_image;
+    vf->uninit=uninit;
     vf->default_reqs=VFCAP_ACCEPT_STRIDE;
     vf->priv=calloc(1, sizeof(struct vf_priv_s));
     if (args) sscanf(args, "%d", &vf->priv->field);