Commit c5af2987 authored by ivoire's avatar ivoire

Fix potential memleak.

parent 7a7541cf
......@@ -2012,7 +2012,11 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
p_item = config_FindConfig( p_this, psz_name );
if( !p_item ) return VLC_SUCCESS;
if( !p_item )
{
free( psz_device );
return VLC_SUCCESS;
}
if( !strcmp( psz_name, "dshow-adev" ) ) b_audio = true;
......
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