[vlc-commits] vout: fix leak
Rémi Denis-Courmont
git at videolan.org
Sat Aug 29 16:45:42 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 29 15:25:17 2015 +0300| [5b77eea208073723451c1515bb01490292216c0f] | committer: Rémi Denis-Courmont
vout: fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5b77eea208073723451c1515bb01490292216c0f
---
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 a87e0b7..9476e5e 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -977,7 +977,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