changeset 16886:ea32158ad57b

close stream_fd on uninit. Fixes bugzilla bug #400. Modified patch from T. Dekker {t dekker [at] student utwente nl}.
author reimar
date Tue, 01 Nov 2005 18:22:18 +0000
parents 22b27bd37eeb
children 8411c683c08b
files libmpcodecs/vf_bmovl.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_bmovl.c	Tue Nov 01 17:09:26 2005 +0000
+++ b/libmpcodecs/vf_bmovl.c	Tue Nov 01 18:22:18 2005 +0000
@@ -155,6 +155,8 @@
 		free(vf->priv->bitmap.v);
 		free(vf->priv->bitmap.a);
 		free(vf->priv->bitmap.oa);
+		if (vf->priv->stream_fd >= 0)
+		  close(vf->priv->stream_fd);
 		free(vf->priv);
 	}
 }