Commit ed88759d authored by Rémi Duraffort's avatar Rémi Duraffort

Fix potential memleak.

(cherry picked from commit c5af2987)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 12a69744
......@@ -2018,7 +2018,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