platform_hardware_interfaces/audio/2.0
Kevin Rocard 40343061d5 Audio HAL: Destroy EventFlag on failed prepareTo{write,read}
If prepareToWrite or prepareToRead fails after EventFlag is created, it
is not destroyed. This lead to strange random crashes (double free it seems).

Use the RAII pattern to manage the EventFlag life cycle.

Test: Run test on target
Bug: 36311550

Change-Id: I53a04a62b7d12fdcc94afd8ced3e547aa6edff50
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-04-07 14:35:47 -07:00
..
default Audio HAL: Destroy EventFlag on failed prepareTo{write,read} 2017-04-07 14:35:47 -07:00
vts/functional Audio HAL: Detect openDevice failure 2017-04-07 13:10:01 -07:00
Android.bp Update makefiles for hwtypes.h 2017-03-28 15:18:20 +00:00
Android.mk Updated makefiles 2017-02-09 17:20:45 -08:00
IDevice.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IDevicesFactory.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IPrimaryDevice.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IStream.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IStreamIn.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IStreamOut.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IStreamOutCallback.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
types.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00