summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/filter/vf_vapoursynth.c4
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;