Commit a2a2b5c4 authored by David Fuhrmann's avatar David Fuhrmann

auhal: fix memleak

parent f120460b
......@@ -206,7 +206,9 @@ static int Open(vlc_object_t *obj)
p_sys->b_mute = var_InheritBool(p_aout, "mute");
aout_MuteReport(p_aout, p_sys->b_mute);
SwitchAudioDevice(p_aout, config_GetPsz(p_aout, "auhal-audio-device"));
char *psz_audio_device = config_GetPsz(p_aout, "auhal-audio-device");
SwitchAudioDevice(p_aout, psz_audio_device);
free(psz_audio_device);
return VLC_SUCCESS;
}
......
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