[player] Fix memory leak if opening new source failed

player.c:2032:11: warning: Potential leak of memory pointed to by 'ps'
This commit is contained in:
chme 2018-12-17 08:41:15 +01:00 committed by ejurgensen
parent b7f3e71f7e
commit f3a495cd37

View File

@ -2037,6 +2037,7 @@ playback_start_item(void *arg, int *retval)
if (ret < 0)
{
playback_abort();
source_free(ps);
*retval = -1;
return COMMAND_END;
}