alsa_sound: Fix to avoid crash while erasing item from mDeviceList
-In AudioHardwareALSA's destructor,while erasing item from mDeviceList
is leading to crash in current implementation, if List containing
more than one item.
-This is happening because of Invalid iterator value after deleting
current item from List, then using same iterator for next operation.
-It can avoid returning an Iterator item form List's erase function
and then use it for next operation.
(cherry picked from commit 41d7bad968b94bc8ac1d6ea92849b2792604963e)
1 file changed