Commit f27f834d authored by David Fuhrmann's avatar David Fuhrmann

auhal: fix memory corruption crash when device list changes (refs #8286)

parent 15c2e08b
...@@ -1005,6 +1005,7 @@ static void RebuildDeviceList(audio_output_t * p_aout) ...@@ -1005,6 +1005,7 @@ static void RebuildDeviceList(audio_output_t * p_aout)
free(device); free(device);
} }
} }
p_sys->devices = NULL;
/* Get number of devices */ /* Get number of devices */
AudioObjectPropertyAddress audioDevicesAddress = { kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster }; AudioObjectPropertyAddress audioDevicesAddress = { kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster };
......
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