[vlc-commits] vout: spuhelper: fix leak
Francois Cartegnie
git at videolan.org
Tue May 15 21:49:19 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue May 15 09:48:18 2018 +0200| [de40a733ffa30ae9fb1000a5f1e7edc5e2c45201] | committer: Francois Cartegnie
vout: spuhelper: fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=de40a733ffa30ae9fb1000a5f1e7edc5e2c45201
---
src/video_output/vout_spuregion_helper.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/video_output/vout_spuregion_helper.h b/src/video_output/vout_spuregion_helper.h
index 9738e35ecd..451b911915 100644
--- a/src/video_output/vout_spuregion_helper.h
+++ b/src/video_output/vout_spuregion_helper.h
@@ -85,7 +85,10 @@ spuregion_CreateFromPicture( vlc_object_t *p_this, video_format_t *p_fmt,
subpicture_region_t *region = subpicture_region_New(p_fmt);
if (!region)
+ {
+ picture_Release( p_pic );
return NULL;
+ }
picture_Release( region->p_picture );
region->p_picture = p_pic;
More information about the vlc-commits
mailing list