Commit 147ccd1b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

aout: fix potential crash if changing device on aout being deleted

parent bf62d22f
......@@ -324,6 +324,7 @@ void aout_Destroy (audio_output_t *aout)
/* Protect against late call from intf.c */
aout->volume_set = NULL;
aout->mute_set = NULL;
aout->device_select = NULL;
aout_OutputUnlock (aout);
var_DelCallback (aout, "mute", var_Copy, aout->p_parent);
......
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