]> git.sesse.net Git - vlc/commitdiff
auhal: fix memory corruption crash when device list changes (refs #8286)
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sun, 10 Mar 2013 17:39:00 +0000 (18:39 +0100)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 23 Mar 2013 14:01:07 +0000 (15:01 +0100)
modules/audio_output/auhal.c

index 03a60fe393811212b919a392215230ce2a039633..4d3a8345147e2eb14b75a3397169361432d79489 100644 (file)
@@ -1005,6 +1005,7 @@ static void RebuildDeviceList(audio_output_t * p_aout)
             free(device);
         }
     }
+    p_sys->devices = NULL;
 
     /* Get number of devices */
     AudioObjectPropertyAddress audioDevicesAddress = { kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster };