if( getenv( "DISPLAY" ) == NULL )
{
msg_Err( p_intf, "no display, please set the DISPLAY variable" );
- free( p_sys );
+ free( p_intf->p_sys );
return VLC_EGENERIC;
}
if( p_intf->p_sys->p_osd == NULL )
{
msg_Err( p_intf, "couldn't initialize libxosd" );
- free( p_sys );
+ free( p_intf->p_sys );
return VLC_EGENERIC;
}
#else
if( p_osd == NULL )
{
msg_Err( p_intf, "couldn't initialize libxosd" );
- free( p_sys );
+ free( p_intf->p_sys );
return VLC_EGENERIC;
}