[vlc-commits] vout: fix leak
Rémi Denis-Courmont
git at videolan.org
Wed Oct 21 18:56:59 CEST 2015
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 29 15:25:17 2015 +0300| [5dbb18c00dc656ac1b5e8b170eabe8bc58402af1] | committer: Jean-Baptiste Kempf
vout: fix leak
(cherry picked from commit 5b77eea208073723451c1515bb01490292216c0f)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=5dbb18c00dc656ac1b5e8b170eabe8bc58402af1
---
src/video_output/video_output.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index bc1fd6c..ff1e96a 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1047,7 +1047,11 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
subpic = NULL;
}
if (!sys->display.filtered)
+ {
+ if (subpic != NULL)
+ subpicture_Delete(subpic);
return VLC_EGENERIC;
+ }
}
vout_chrono_Stop(&vout->p->render);
More information about the vlc-commits
mailing list