summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_stereo3d.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-18 12:23:02 +0200
committerwm4 <wm4@nowhere>2013-05-18 17:45:55 +0200
commitb0a60b7321c8878154f2488d99dd7b99cefca43b (patch)
tree8c2e881ab62d43b263fe58ca4dc0ef3cf42d3496 /video/filter/vf_stereo3d.c
parentf569d245ba37898a79e853cb6fbd906dd992b531 (diff)
downloadmpv-b0a60b7321c8878154f2488d99dd7b99cefca43b.tar.bz2
mpv-b0a60b7321c8878154f2488d99dd7b99cefca43b.tar.xz
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.
Diffstat (limited to 'video/filter/vf_stereo3d.c')
-rw-r--r--video/filter/vf_stereo3d.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/video/filter/vf_stereo3d.c b/video/filter/vf_stereo3d.c
index 956d6302d0..555e87f78e 100644
--- a/video/filter/vf_stereo3d.c
+++ b/video/filter/vf_stereo3d.c
@@ -394,15 +394,9 @@ static int query_format(struct vf_instance *vf, unsigned int fmt)
return 0;
}
-static void uninit(vf_instance_t *vf)
-{
- free(vf->priv);
-}
-
static int vf_open(vf_instance_t *vf, char *args)
{
vf->config = config;
- vf->uninit = uninit;
vf->filter = filter;
vf->query_format = query_format;