[vlc-commits] spu: fix memory leak
Rémi Denis-Courmont
git at videolan.org
Thu Sep 15 13:14:45 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 15 14:14:39 2016 +0300| [2f60883561b4f0d99e1a8ca1b8dd564573f4c092] | committer: Rémi Denis-Courmont
spu: fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f60883561b4f0d99e1a8ca1b8dd564573f4c092
---
src/misc/subpicture.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/misc/subpicture.c b/src/misc/subpicture.c
index 3ea95d8..f18be17 100644
--- a/src/misc/subpicture.c
+++ b/src/misc/subpicture.c
@@ -186,9 +186,12 @@ subpicture_region_private_t *subpicture_region_private_New( video_format_t *p_fm
return NULL;
if ( video_format_Copy( &p_private->fmt, p_fmt ) != VLC_SUCCESS )
+ {
+ free( p_private );
return NULL;
- p_private->p_picture = NULL;
+ }
+ p_private->p_picture = NULL;
return p_private;
}
More information about the vlc-commits
mailing list