Commit 1c4a36a8 authored by Gildas Bazin's avatar Gildas Bazin

* src/libvlc.c: fixed small memory leak.

parent 89031d0f
......@@ -650,9 +650,13 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
return VLC_EGENERIC;
}
/* Add service discovery modules */
playlist_AddSDModules( p_playlist,
config_GetPsz( p_playlist, "services-discovery" ) );
psz_modules = config_GetPsz( p_playlist, "services-discovery" );
if( psz_modules && *psz_modules )
{
/* Add service discovery modules */
playlist_AddSDModules( p_playlist, psz_modules );
}
if( psz_modules ) free( psz_modules );
/*
* Load background interfaces
......
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