[vlc-devel] commit: Another check for malloc. ( Rémi Duraffort )
git version control
git at videolan.org
Mon Mar 3 15:33:31 CET 2008
vlc | branch: master | Rémi Duraffort <ivoire at via.ecp.fr> | Mon Mar 3 15:14:18 2008 +0100| [bcee7c9eda234a2174b81c0ad85b7d554b3f70c5]
Another check for malloc.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bcee7c9eda234a2174b81c0ad85b7d554b3f70c5
---
modules/visualization/visual/visual.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/visualization/visual/visual.c b/modules/visualization/visual/visual.c
index ce6787e..04ffa02 100644
--- a/modules/visualization/visual/visual.c
+++ b/modules/visualization/visual/visual.c
@@ -231,6 +231,8 @@ static int Open( vlc_object_t *p_this )
int i;
p_effect = malloc( sizeof( visual_effect_t ) );
+ if( !p_effect )
+ break;
p_effect->i_width = p_sys->i_width;
p_effect->i_height= p_sys->i_height;
p_effect->i_nb_chans = aout_FormatNbChannels( &p_filter->input);
More information about the vlc-devel
mailing list