Commit e4ed088f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

aout: fix cleanup after error

parent e1881378
......@@ -133,8 +133,11 @@ void aout_Shutdown (audio_output_t *p_aout)
aout_InputDelete (p_aout, input);
owner->input = NULL;
aout_OutputDelete( p_aout );
aout_volume_Delete (owner->volume);
if (likely(owner->module != NULL))
{
aout_OutputDelete( p_aout );
aout_volume_Delete (owner->volume);
}
var_Destroy( p_aout, "audio-device" );
var_Destroy( p_aout, "audio-channels" );
......
Supports Markdown
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