audio: Correctly handle out of memory conditions

Change-Id: Id7e0ab1085d3e38c1eaa7905a17726e9d1a68cc9
2 files changed