Merge "Fix potential leak of audio input handle." into klp-dev