From b0a60b7321c8878154f2488d99dd7b99cefca43b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 18 May 2013 12:23:02 +0200 Subject: video/filter: fix option parser memory leak This happens only if an option actually allocates memory (like strings). Change filter API such that vf->priv is free'd by vf.c instead by the filters. vf.c will free the option values as well. --- video/filter/vf_lavfi.c | 1 - 1 file changed, 1 deletion(-) (limited to 'video/filter/vf_lavfi.c') diff --git a/video/filter/vf_lavfi.c b/video/filter/vf_lavfi.c index 0b01e9b425..f581fe950e 100644 --- a/video/filter/vf_lavfi.c +++ b/video/filter/vf_lavfi.c @@ -310,7 +310,6 @@ static void uninit(struct vf_instance *vf) if (!vf->priv) return; destroy_graph(vf); - free(vf->priv); } static int vf_open(vf_instance_t *vf, char *args) -- cgit v1.2.3