Fix memory leak in audio stream code