Commit 3e606132 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Memory leaks

parent 6858023f
......@@ -122,14 +122,13 @@ libvlc_instance_t * libvlc_new( int argc, const char *const *argv,
/* Because we probably don't want a GUI by default */
i_ret = libvlc_InternalInit( p_libvlc_int, argc + 1, my_argv );
if( i_ret == VLC_EEXITSUCCESS )
if( i_ret )
{
libvlc_InternalDestroy( p_libvlc_int );
free( p_new );
if( i_ret == VLC_EEXITSUCCESS )
return NULL;
}
else if( i_ret != 0 )
{
free( p_new );
else
RAISENULL( "VLC initialization failed" );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment