Commit 67fe08b7 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

es_out: fix input_source_t leak on error

parent 36596846
......@@ -1446,7 +1446,7 @@ static es_out_pgrm_t *EsOutProgramAdd( es_out_t *out, input_source_t *source, in
return NULL;
/* Init */
p_pgrm->source = input_source_Hold( source );
p_pgrm->source = source;
p_pgrm->i_id = i_group;
p_pgrm->i_es = 0;
p_pgrm->b_selected = false;
......@@ -1492,6 +1492,8 @@ static es_out_pgrm_t *EsOutProgramAdd( es_out_t *out, input_source_t *source, in
if( i_group == p_sys->i_group_id || ( !p_sys->p_pgrm && p_sys->i_group_id == 0 ) )
EsOutProgramSelect( out, p_pgrm );
input_source_Hold( source );
return p_pgrm;
}
......
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