diff options
author | wm4 <wm4@nowhere> | 2014-04-28 21:45:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-28 22:23:32 +0200 |
commit | 062d5eea3b97c625cc12b20ef84511959f7ded9f (patch) | |
tree | 3049b5380004173e6577bd1af42f5e7844a7b7b4 /video | |
parent | dffb7c240930c4be27449ada98ca50fb9d37847a (diff) | |
download | mpv-062d5eea3b97c625cc12b20ef84511959f7ded9f.tar.bz2 mpv-062d5eea3b97c625cc12b20ef84511959f7ded9f.tar.xz |
vf_vapoursynth: fix memory leak on error
Since this leaks video images, and the player keeps feeding new images
to the fitler even if it fails, this would probably have disastrous
consequences.
Diffstat (limited to 'video')
-rw-r--r-- | video/filter/vf_vapoursynth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c index d9a0febc76..ccec2662cc 100644 --- a/video/filter/vf_vapoursynth.c +++ b/video/filter/vf_vapoursynth.c @@ -175,8 +175,10 @@ static int filter_ext(struct vf_instance *vf, struct mp_image *mpi) struct vf_priv_s *p = vf->priv; int ret = 0; - if (!p->out_node) + if (!p->out_node) { + talloc_free(mpi); return -1; + } if (!mpi) return 0; |