soundrecorder: fix 2 leaks

Change-Id: If1a71e1843c618c6f1c9ff36be8d64e3400ec953