Commit 8b47d5a7 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

auhal: fix minor memory leak when handling SPDIF devices

Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 14250ccc
......@@ -1016,9 +1016,11 @@ static void RebuildDeviceList(audio_output_t * p_aout)
if (AudioDeviceSupportsDigital(p_aout, deviceIDs[i])) {
b_digital = true;
msg_Dbg(p_aout, "'%s' supports digital output", psz_name);
asprintf(&psz_name, _("%s (Encoded Output)"), psz_name);
char *psz_encoded_name = nil;
asprintf(&psz_encoded_name, _("%s (Encoded Output)"), psz_name);
i_id = i_id | AOUT_VAR_SPDIF_FLAG;
add_device_to_list(p_aout, i_id, psz_name);
add_device_to_list(p_aout, i_id, psz_encoded_name);
free(psz_encoded_name);
}
CFRelease(device_name_ref);
......
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