[vlc-commits] antiflicker: memory leak
Rémi Denis-Courmont
git at videolan.org
Sat Nov 10 21:42:58 CET 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 10 22:24:32 2012 +0200| [5ba3190923e93d7f1359df387fb982cce79eac01] | committer: Rémi Denis-Courmont
antiflicker: memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ba3190923e93d7f1359df387fb982cce79eac01
---
modules/video_filter/antiflicker.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/video_filter/antiflicker.c b/modules/video_filter/antiflicker.c
index 1b12b26..b06776a 100644
--- a/modules/video_filter/antiflicker.c
+++ b/modules/video_filter/antiflicker.c
@@ -132,7 +132,10 @@ static int Create( vlc_object_t *p_this )
(p_filter->fmt_in.video.i_height+1),sizeof(*p_filter->p_sys->p_old_data) );
if( p_filter->p_sys->p_old_data == NULL )
+ {
+ free( p_filter->p_sys );
return VLC_ENOMEM;
+ }
memset( p_filter->p_sys->ia_luminance_data, 0,
sizeof(p_filter->p_sys->ia_luminance_data) );
More information about the vlc-commits
mailing list