/* Specific interfaces */
intf_console_t * p_console; /** console */
intf_sys_t * p_sys; /** system interface */
+ char * psz_intf; /** intf name specified */
/** Interface module */
module_t * p_module;
}
/* Choose the best module */
+ p_intf->psz_intf = strdup( psz_module );
p_intf->p_module = module_Need( p_intf, "interface", psz_module, VLC_FALSE );
if( p_intf->p_module == NULL )
{
msg_Err( p_intf, "no suitable interface module" );
+ free( p_intf->psz_intf );
vlc_object_destroy( p_intf );
return NULL;
}
{
module_Unneed( p_intf, p_intf->p_module );
}
+ free( p_intf->psz_intf );
vlc_mutex_destroy( &p_intf->change_lock );
vlc_mutex_unlock( &p_intf->object_lock );
+ p_intf->psz_intf = psz_intf;
p_intf->p_module = module_Need( p_intf, "interface", psz_intf, 0 );
- free( psz_intf );
}
while( p_intf->p_module );
}